ium_434788/Jenkinsfile_train

64 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-05-13 19:18:15 +02:00
pipeline {
2021-05-14 19:55:16 +02:00
agent {docker { image 'adnovac/ium_s434760:1.0' }}
2021-05-14 18:07:29 +02:00
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD'
)
string(
defaultValue: '16',
description: 'batch size',
name: 'BATCH_SIZE'
)
string(
defaultValue: '15',
description: 'epochs',
name: 'EPOCHS'
)
}
2021-05-13 19:18:15 +02:00
stages {
2021-05-14 18:07:29 +02:00
stage('copy artifacts')
{
steps
{
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-create-dataset', selector: buildParameter('WHICH_BUILD'))
}
}
stage('train')
{
steps
{
catchError {
2021-05-14 18:11:33 +02:00
sh 'python3.8 Zadanie_06_training.py'
2021-05-14 18:07:29 +02:00
}
}
2021-05-13 19:18:15 +02:00
}
stage('Archive artifacts') {
steps{
2021-05-14 20:14:31 +02:00
archiveArtifacts 'wine_model/**'
2021-05-13 19:18:15 +02:00
}
}
}
post {
success {
2021-05-13 19:19:21 +02:00
build job: 's434788-evaluation/master'
2021-05-13 19:18:15 +02:00
mail body: 'SUCCESS',
2021-05-14 20:14:31 +02:00
subject: 's434788 training',
2021-05-13 19:18:15 +02:00
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
2021-05-13 19:19:21 +02:00
mail body: 'UNSTABLE', subject: 's434788', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-13 19:18:15 +02:00
}
failure {
2021-05-13 19:19:21 +02:00
mail body: 'FAILURE', subject: 's434788', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-13 19:18:15 +02:00
}
changed {
2021-05-13 19:19:21 +02:00
mail body: 'CHANGED', subject: 's434788', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-13 19:18:15 +02:00
}
}
}