b0348f72f9
Some checks failed
s434804-evaluation/pipeline/head There was a failure building this commit
54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
pipeline {
|
|
agent {dockerfile true}
|
|
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 artifacts',
|
|
name: 'WHICH_BUILD_TRAIN'
|
|
)
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'WHICH_BUILD_EVAL'
|
|
)
|
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
|
}
|
|
stages {
|
|
stage('copyArtifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434804-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434804-training/master', selector: buildParameter('WHICH_BUILD_TRAIN')
|
|
copyArtifacts optional: true, fingerprintArtifacts: true, projectName: 's434804-evaluation/master', selector: buildParameter('WHICH_BUILD_EVAL')
|
|
}
|
|
}
|
|
stage('evaluation') {
|
|
steps {
|
|
sh 'chmod +x ./tensor-eval.py'
|
|
sh 'python3 ./tensor-eval.py $BUILD_NUMBER >> evaluation.txt'
|
|
sh 'python3 ./tensor-plot.py'
|
|
}
|
|
}
|
|
stage('archiveArtifacts') {
|
|
steps{
|
|
archiveArtifacts 'evaluation.txt'
|
|
archiveArtifacts 'evaluation_plot.png'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
mail body: 'SUCCESS', subject: 's434804', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
failure {
|
|
mail body: 'FAILURE', subject: 's434804', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
changed {
|
|
mail body: 'CHANGED', subject: 's434804', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
}
|
|
} |