d76512c266
Some checks failed
s440058-evaluation/pipeline/head There was a failure building this commit
39 lines
1004 B
Plaintext
39 lines
1004 B
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
parameters{
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'WHICH_BUILD'
|
|
)
|
|
}
|
|
stages {
|
|
stage('checkout') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's440058-create-dataset', selector: buildParameter('WHICH_BUILD')
|
|
}
|
|
}
|
|
stage('Docker'){
|
|
steps{
|
|
sh 'python3 "./pytorch-example-evaluate.py" > eval-acc-result.txt'
|
|
}
|
|
}
|
|
stage('archiveArtifacts') {
|
|
steps{
|
|
archiveArtifacts 'eval-acc-result.txt'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
mail body: 'SUCCESS TRAINING', subject: 's440058', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
|
|
failure {
|
|
mail body: 'FAILURE TRAINING', subject: 's440058', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
|
|
}
|
|
} |