ium_430705/Jenkinsfile_evaluation

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-05-10 19:42:26 +02:00
pipeline {
agent {
dockerfile true
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD_DATA'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD_TRAIN'
)
}
stages {
stage('checkout') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('WHICH_BUILD_DATA')
}
}
stage('Docker'){
steps{
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-training/master', selector: buildParameter('WHICH_BUILD_TRAIN')
sh 'python3 "./lab06-eval.py" >> eval.txt'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'eval.txt'
2021-05-10 21:10:41 +02:00
archiveArtifacts 'lab07/**'
2021-05-10 19:42:26 +02:00
}
}
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS EVALUATION',
subject: 's430705 evaluation',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}