41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
|
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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|