ium_444517/Jenkinsfile_eval

46 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-05-03 12:59:33 +02:00
pipeline {
agent {
dockerfile true
}
parameters {
2022-05-03 18:41:33 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
2022-05-03 12:59:33 +02:00
}
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
stage('Copy from different Pipeline') {
steps {
2022-05-03 13:06:38 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: lastSuccessful()
2022-05-03 18:53:50 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's444517-training/${params.BRANCH}', selector: buildParameter('BUILD_SELECTOR')
2022-05-03 13:09:21 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's444517-evaluation/master', selector: lastSuccessful(), optional: true
2022-05-03 12:59:33 +02:00
}
}
stage('Get data save artifacts') {
steps {
sh 'python3 ./nn_train_eval.py'
2022-05-03 18:53:50 +02:00
metrics = readFile(file: 'current_results.txt')
archiveArtifacts artifacts: 'my_model/saved_model.pb, metrics.txt, output.jpg'
2022-05-03 12:59:33 +02:00
}
}
}
2022-05-03 18:41:33 +02:00
post {
always {
2022-05-03 18:53:50 +02:00
emailext body: "${currentBuild.currentResult} ${metrics}", subject: 's444517_build_status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
2022-05-03 18:41:33 +02:00
}
}
2022-05-03 12:59:33 +02:00
}