s407254-mlworkshops/Jenkinsfile

39 lines
739 B
Plaintext
Raw Normal View History

2019-04-26 10:36:29 +02:00
pipeline {
2019-04-26 12:13:24 +02:00
2019-04-26 12:21:17 +02:00
agent { dockerfile true }
2019-04-26 12:13:24 +02:00
2019-04-26 10:36:29 +02:00
stages {
2019-04-26 11:07:45 +02:00
stage('Copy Archive') {
steps {
script {
step ([$class: 'CopyArtifact',
projectName: 'ASR-eval',
target: 'Infra']);
}
2019-04-26 10:49:02 +02:00
}
}
2019-04-26 11:29:21 +02:00
2019-04-26 12:06:55 +02:00
stage('Git checkout') {
2019-04-26 11:29:21 +02:00
steps{
2019-04-26 11:53:26 +02:00
sh 'git checkout'
2019-04-26 12:06:55 +02:00
}
}
2019-04-26 12:23:30 +02:00
stage('Run script') {
2019-04-26 12:06:55 +02:00
steps{
2019-04-26 11:56:29 +02:00
sh 'sh test.sh text.txt out.txt'
2019-04-26 12:10:57 +02:00
archiveArtifacts artifacts: 'out.txt'
2019-04-26 11:29:21 +02:00
}
}
2019-04-26 12:06:55 +02:00
2019-04-26 12:26:10 +02:00
stage('Docker Test') {
2019-04-26 12:13:24 +02:00
steps {
2019-04-26 12:23:30 +02:00
sh 'git --version'
2019-04-26 12:13:24 +02:00
}
}
2019-04-26 12:06:55 +02:00
}
2019-04-26 11:11:07 +02:00
}