ium_444465/Jenkinsfile.train

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-05-01 19:48:29 +02:00
pipeline {
agent {
dockerfile true
}
2022-05-02 20:34:50 +02:00
parameters {
2022-05-02 23:55:35 +02:00
string(
name: 'EPOCHS',
defaultValue: '10',
description: 'Number of epochs in training'
)
2022-05-02 20:34:50 +02:00
}
2022-05-01 19:48:29 +02:00
stages {
stage("Git clone") {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
}
}
stage("Training") {
steps {
sh "chmod 777 ml_training.py"
2022-05-04 00:28:52 +02:00
sh "python3 ml_training.py $EPOCHS"
2022-05-04 00:36:29 +02:00
archiveArtifacts artifacts: "trained_model/*", onlyIfSuccessful: true
2022-05-01 19:48:29 +02:00
}
}
}
2022-05-04 00:36:29 +02:00
post {
success {
emailext body: "SUCCESS", subject: "s444465-training build status", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
}
failure {
emailext body: "FAILURE", subject: "s444465-training build status", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
}
}
2022-05-01 19:48:29 +02:00
}