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')
|
2021-05-13 09:34:30 +02:00
|
|
|
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-13 09:34:30 +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')
|
2021-05-13 12:04:40 +02:00
|
|
|
sh "python3 lab06_training.py ${epochs}"
|
2021-05-07 22:36:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Archive artifacts') {
|
|
|
|
steps{
|
2021-05-23 12:40:33 +02:00
|
|
|
archiveArtifacts 'movies_imdb/**'
|
2021-05-07 22:36:28 +02:00
|
|
|
}
|
|
|
|
}
|
2021-05-13 09:34:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
success {
|
2021-05-13 10:48:52 +02:00
|
|
|
|
2021-05-13 12:41:14 +02:00
|
|
|
build job: 's430705-evaluation/master'
|
2021-05-13 09:54:00 +02:00
|
|
|
mail body: 'SUCCESS',
|
2021-05-13 09:34:30 +02:00
|
|
|
subject: 's430705',
|
2021-05-07 23:03:14 +02:00
|
|
|
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
2021-05-13 09:34:30 +02:00
|
|
|
}
|
|
|
|
unstable {
|
2021-05-13 09:54:00 +02:00
|
|
|
mail body: 'UNSTABLE', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
2021-05-13 09:34:30 +02:00
|
|
|
}
|
|
|
|
failure {
|
2021-05-13 09:54:00 +02:00
|
|
|
mail body: 'FAILURE', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
2021-05-13 09:34:30 +02:00
|
|
|
}
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|