update jenkinsfile_train-sacred, jenkinsfile_predict
This commit is contained in:
parent
cfaaedf748
commit
b16fce0beb
@ -5,6 +5,10 @@ pipeline {
|
||||
}
|
||||
}
|
||||
parameters {
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts for predict',
|
||||
name: 'BUILD_SELECTOR')
|
||||
string(
|
||||
defaultValue: 'input_example.json',
|
||||
description: 'Input file name',
|
||||
@ -16,7 +20,7 @@ pipeline {
|
||||
stages {
|
||||
stage('Script') {
|
||||
steps {
|
||||
copyArtifacts projectName: 's444409-training/main', selector: lastSuccessful()
|
||||
copyArtifacts projectName: 's444409-training/main', selector: buildParameter('BUILD_SELECTOR')
|
||||
sh 'python3 ./predict.py $INPUT'
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,22 @@ pipeline {
|
||||
archiveArtifacts artifacts: 'my_model/**'
|
||||
sh 'rm -r mlruns'
|
||||
sh 'rm -r my_model'
|
||||
build job: 's444356-evaluation/master/'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
emailext body: 'SUCCESS', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||
}
|
||||
failure {
|
||||
emailext body: 'FAILURE', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||
}
|
||||
unstable {
|
||||
emailext body: 'UNSTABLE', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||
}
|
||||
changed {
|
||||
emailext body: 'CHANGED', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user