ium_444356/Jenkinsfile_train-sacred

38 lines
1.1 KiB
Plaintext
Raw Normal View History

pipeline {
agent {
2022-05-09 21:59:52 +02:00
docker {
image 'maciejczajka'
}
}
parameters {
string(
2022-05-09 21:59:52 +02:00
defaultValue: '100',
description: 'Number of epochs',
name: 'EPOCHS',
trim: false
)
}
stages {
stage('Script'){
steps {
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
2022-05-09 22:03:50 +02:00
sh "python Biblioteka_DL/dllib-sacred.py -e $EPOCHS"
2022-05-09 21:59:52 +02:00
archiveArtifacts artifacts: 'games_model.pkl'
}
}
}
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'
}
}
}