s416226-plots/Jenkinsfile

27 lines
727 B
Plaintext
Raw Normal View History

2020-04-03 17:13:17 +02:00
pipeline {
agent {dockerfile true}
stages {
2020-04-03 17:21:41 +02:00
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:31:32 +02:00
}
2020-04-03 17:21:41 +02:00
}
2020-04-03 17:13:17 +02:00
stage('Copy artifacts'){
steps {
copyArtifacts filter: filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's416226-metrics', selector: lastSuccessful()
}
}
stage('Plot'){
steps {
sh('chmod +x ./plot.sh')
sh('./plot.sh')
}
}
stage('Save results'){
steps {
archiveArtifacts 'srr.png'
archiveArtifacts 'wer.png'
}
}
}
}