s152203-mlworkshops/Jenkinsfile

33 lines
790 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:06:37 +02:00
sh 'chmod +x ./script.sh'
2020-04-03 13:17:05 +02:00
sh label: 'ls', script: 'ls'
sh label: 'cat', script: 'cat res.txt'
2020-04-03 13:19:19 +02:00
sh label: 'cat', script: 'cat wikiniews_results.tsv'
2020-04-03 12:54:59 +02:00
}
}
2020-04-03 11:33:45 +02:00
}
}