ium_430705/Jenkinsfile_evaluation
s430705 7f51f5c8d3
Some checks failed
s430705-evaluation/pipeline/head There was a failure building this commit
Add 02 solution to lab07 sacred
2021-05-12 09:56:18 +02:00

45 lines
1.4 KiB
Plaintext

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'
sh 'python3 "./lab07_sacred01.py"'
sh 'python3 "./lab07_sacred02.py"'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'eval.txt'
archiveArtifacts 'lab07/**'
}
}
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS EVALUATION',
subject: 's430705 evaluation',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}