ium_444465/Jenkinsfile.train
2022-05-01 19:48:29 +02:00

27 lines
760 B
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
string(
defaultValue: "10",
description: 'How many epochs during training?',
name: 'epochs'
)
}
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 {
withEnv(["EPOCHS=${params.EPOCHS}"]) {
sh "chmod 777 ml_training.py"
sh "python3 ml_training.py $EPOCHS"
}
}
}
}
}