2022-05-01 19:48:29 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2022-05-02 20:34:50 +02:00
|
|
|
parameters {
|
|
|
|
string(name: 'EPOCH', defaultValue: '10', description: 'Number of epochs in training')
|
|
|
|
}
|
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-02 20:34:50 +02:00
|
|
|
sh "python3 ml_training.py $EPOCH"
|
2022-05-01 19:48:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|