ium_430705/Jenkinsfile_training

48 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-05-07 22:36:28 +02:00
pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
string(
defaultValue: '300',
description: 'Number of epochs.',
name: 'epochs',
2021-05-13 09:50:45 +02:00
trim: false)
2021-05-07 22:36:28 +02:00
}
2021-05-07 22:36:28 +02:00
stages {
stage('copyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'python3 lab06_training.py ${epochs}'
2021-05-07 22:36:28 +02:00
}
}
stage('Archive artifacts') {
steps{
2021-05-10 20:02:19 +02:00
archiveArtifacts 'model_movies/**'
2021-05-07 22:36:28 +02:00
}
}
}
post {
success {
build job: 's430705-training/evaluation'
2021-05-13 09:54:00 +02:00
mail body: 'SUCCESS',
subject: 's430705',
2021-05-07 23:03:14 +02:00
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
2021-05-13 09:54:00 +02:00
mail body: 'UNSTABLE', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
2021-05-13 09:54:00 +02:00
mail body: 'FAILURE', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
2021-05-13 09:54:00 +02:00
mail body: 'CHANGED', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-07 23:03:14 +02:00
}
2021-05-07 22:36:28 +02:00
}
}