done jenkinfile_evaluation
Some checks failed
s437622-evaluation/pipeline/head There was a failure building this commit
Some checks failed
s437622-evaluation/pipeline/head There was a failure building this commit
This commit is contained in:
parent
ba3dcfa9b0
commit
7f8af6b4a1
@ -0,0 +1,61 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters {
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR')
|
||||||
|
}
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying train artifacts',
|
||||||
|
name: 'BUILD_SELECTOR_Train')
|
||||||
|
}
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying evaluation artifacts',
|
||||||
|
name: 'BUILD_SELECTOR_Evaluation')
|
||||||
|
}
|
||||||
|
|
||||||
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('copy artifacts'){
|
||||||
|
steps {
|
||||||
|
copyArtifacts(fingerprintArtifacts: true, projectName: '437622-create-dataset', selector: buildParameter('BUILD_SELECTOR'))
|
||||||
|
copyArtifacts(fingerprintArtifacts: true, projectName: '437622-training/master', selector: buildParameter('BUILD_SELECTOR_Train'))
|
||||||
|
copyArtifacts(fingerprintArtifacts: true, optional:true, projectName: '437622-evaluation/master', selector: buildParameter('BUILD_SELECTOR_Evaluation'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('evaluation') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
def img = docker.build('jpogodzinski/ium:1')
|
||||||
|
img.inside {
|
||||||
|
sh 'chmod +x evaluation.py'
|
||||||
|
sh 'python3 ./evaluation.py'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('archiveArtifacts') {
|
||||||
|
steps{
|
||||||
|
archiveArtifacts 'evaluation.txt'
|
||||||
|
archiveArtifacts 'evaluation.png'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
emailext body: 'Success', subject: 's437622 evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
|
}
|
||||||
|
|
||||||
|
failure {
|
||||||
|
emailext body: 'Failed', subject: 's437622 evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user