ium_434804/Jenkinsfile_evaluation

41 lines
1.3 KiB
Plaintext
Raw Normal View History

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