s416226-plots/Jenkinsfile

29 lines
728 B
Plaintext
Raw Normal View History

2020-04-03 17:13:17 +02:00
pipeline {
2020-04-03 17:35:03 +02:00
agent { dockerfile true }
stages {
stage('Checkout') {
steps {
2020-04-03 17:30:11 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416226/s416226-plots']]])
2020-04-03 17:35:03 +02:00
}
}
stage('Copy artifacts'){
steps {
2020-04-03 17:39:49 +02:00
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's416226-metrics', selector: lastSuccessful()
2020-04-03 17:35:03 +02:00
}
}
stage('Plot'){
steps {
2020-04-03 17:13:17 +02:00
sh('chmod +x ./plot.sh')
sh('./plot.sh')
2020-04-03 17:35:03 +02:00
}
}
stage('Save results'){
steps {
2020-04-03 17:13:17 +02:00
archiveArtifacts 'srr.png'
archiveArtifacts 'wer.png'
2020-04-03 17:35:03 +02:00
}
}
}
}