ium_434742/Jenkinsfile-evaluation

57 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-05-08 13:28:34 +02:00
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
2021-05-11 21:00:04 +02:00
description: 'Which build to use for copying data artifacts',
name: 'BUILD_SELECTOR_DATASET'
2021-05-08 13:28:34 +02:00
)
buildSelector(
defaultSelector: lastSuccessful(),
2021-05-11 21:00:04 +02:00
description: 'Which build to use for copying training artifacts',
name: 'BUILD_SELECTOR_TRAINING'
2021-05-08 13:28:34 +02:00
)
buildSelector(
defaultSelector: lastSuccessful(),
2021-05-11 21:00:04 +02:00
description: 'Which build to use for copying evaluation artifacts',
name: 'BUILD_SELECTOR_EVALUATION'
2021-05-08 13:28:34 +02:00
)
}
stage('copy artifacts')
{
steps
{
2021-05-11 21:00:04 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-training', selector: buildParameter('BUILD_SELECTOR_TRAINING'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-evaluation', selector: buildParameter('BUILD_SELECTOR_EVALUATION'))
2021-05-08 13:28:34 +02:00
}
}
stage('docker-training') {
steps {
script {
def img = docker.build('patlaz/ium:1.0')
img.inside {
sh 'chmod +x avocado-evaluation.py'
sh 'python3 avocado-evaluation.py'
}
}
}
}
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS',
subject: 's434742 evaluation',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
2021-05-11 21:07:44 +02:00
}