2021-05-15 15:54:08 +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('copyArtifacts') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434732-create-dataset', selector: buildParameter('WHICH_BUILD_DATA')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Run_script'){
|
|
|
|
steps{
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434732-training/master', selector: buildParameter('WHICH_BUILD_TRAIN')
|
|
|
|
sh 'python3 "./evaluation.py" >> result.txt'
|
2021-05-15 17:01:32 +02:00
|
|
|
sh 'python3 "./mongoObserver.py"'
|
2021-05-15 15:54:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'result.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
mail body: 'SUCCESS EVALUATION', subject: 's434732', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
|
|
|
|
failure {
|
|
|
|
mail body: 'FAILURE EVALUATION', subject: 's434732', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|