ium_444386/Jenkinsfile_train

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-04-27 19:49:15 +02:00
pipeline {
agent {
dockerfile true
}
2022-04-27 21:25:40 +02:00
parameters {
string(
2022-05-01 19:57:17 +02:00
defaultValue: '5',
2022-04-27 21:25:40 +02:00
description: 'learning iterations',
name: 'epoch'
)
}
2022-04-27 19:49:15 +02:00
stages {
stage('Stage 1') {
steps {
copyArtifacts filter: 'data.csv', fingerprintArtifacts: true, projectName: 's444386-create-dataset', selector: lastSuccessful()
2022-05-08 11:53:41 +02:00
sh 'chmod u+x ./sacred_training.py'
2022-05-08 11:51:03 +02:00
sh 'python3 sacred_training.py $epoch'
2022-04-27 20:06:38 +02:00
sh 'tar -czf model.tar.gz model/'
archiveArtifacts 'model.tar.gz'
2022-04-27 21:06:37 +02:00
archiveArtifacts 'xtest.csv'
archiveArtifacts 'ytest.csv'
2022-04-27 19:49:15 +02:00
}
}
}
2022-04-28 19:33:58 +02:00
post {
success {
emailext body: 'SUCCESS', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
2022-04-28 19:35:43 +02:00
build job: 's444386-evaluation/training-evaluation/'
2022-04-28 19:33:58 +02:00
}
failure {
emailext body: 'FAILURE', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
emailext body: 'UNSTABLE', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
emailext body: 'CHANGED', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
2022-04-27 19:49:15 +02:00
}