ium_434742/evaluation.Jenkinsfile
patrycjalazna 1185a707a9
All checks were successful
s434742-evaluation/pipeline/head This commit looks good
s434742-training/pipeline/head This commit looks good
changed Jenkinsfiles filenames
2021-05-14 19:29:48 +02:00

69 lines
2.0 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying data artifacts',
name: 'BUILD_SELECTOR_DATASET'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying training artifacts',
name: 'BUILD_SELECTOR_TRAINING'
)
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: 's434742-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-training/master', selector: buildParameter('BUILD_SELECTOR_TRAINING'))
copyArtifacts(fingerprintArtifacts: true, optional:true, projectName: 's434742-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION'))
}
}
stage('evaluation') {
steps {
script {
sh 'chmod +x avocado-evaluation.py'
sh 'python3 avocado-evaluation.py'
}
}
}
stage('archiveArtifacts') {
steps{
archiveArtifacts 'eval_results.txt'
archiveArtifacts 'eval_plot.png'
}
}
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS',
subject: 's434742 evaluation',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}