s452108-mlworkshops/jenkinsfile2

30 lines
959 B
Plaintext
Raw Permalink Normal View History

2020-04-05 18:31:32 +02:00
pipeline {
agent { dockerfile true }
stages {
stage('Cloning GIT') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452108/s452108-mlworkshops']]])
}
}
stage('Copy Artifacts') {
steps {
copyArtifacts filter: 'averagesrr.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful()
copyArtifacts filter: 'averagewer.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful()
}
}
stage('Plot') {
steps {
2020-04-05 19:52:55 +02:00
sh label: '', script: 'python plotwer.py'
sh label: '', script: 'python plotsrr.py'
2020-04-05 18:31:32 +02:00
}
}
stage('Archive atifacts') {
steps {
archiveArtifacts 'plotwer.png'
archiveArtifacts 'plotsrr.png'
}
}
}
}