29 lines
728 B
Groovy
29 lines
728 B
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416226/s416226-plots']]])
|
|
}
|
|
}
|
|
stage('Copy artifacts'){
|
|
steps {
|
|
copyArtifacts 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'
|
|
}
|
|
}
|
|
}
|
|
}
|