s152203-mlworkshops/Jenkinsfile

39 lines
863 B
Plaintext
Raw Normal View History

2020-04-03 11:33:45 +02:00
pipeline {
agent any
stages {
2020-04-03 12:21:32 +02:00
stage('checkout'){
steps {
2020-04-03 12:25:42 +02:00
git url: 'https://git.wmi.amu.edu.pl/s152203/s152203-mlworkshops'
2020-04-03 12:21:32 +02:00
echo 'Check out from version control'
}
}
2020-04-03 11:33:45 +02:00
stage('Hello') {
steps {
echo 'Hello World'
}
2020-04-03 12:43:43 +02:00
}
2020-04-03 12:47:45 +02:00
2020-04-03 12:42:18 +02:00
stage('Copy artifacts'){
steps{
2020-04-03 12:54:59 +02:00
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
2020-04-03 12:42:18 +02:00
}
}
2020-04-03 12:54:59 +02:00
stage('Shell script'){
steps{
2020-04-03 13:41:06 +02:00
sh 'chmod +x script.sh'
sh './script.sh'
2020-04-03 13:17:05 +02:00
sh label: 'cat', script: 'cat res.txt'
2020-04-03 12:54:59 +02:00
}
}
2020-04-03 13:49:44 +02:00
stage('archiveArtifacts'){
steps{
archiveArtifacts 'res.txt'
archiveArtifacts 'script.sh'
}
}
2020-04-03 11:33:45 +02:00
}
}