Jenkins fix

This commit is contained in:
Andrzej Preibisz 2022-05-02 21:06:30 +02:00
parent fbc8395e2c
commit 54f5e68caf

View File

@ -3,7 +3,7 @@ pipeline {
dockerfile true dockerfile true
} }
parameters { parameters {
string(name: 'EPOCH', defaultValue: '10', description: 'Number of epochs in training') string(name: 'EPOCHS', defaultValue: '10', description: 'Number of epochs in training')
} }
stages { stages {
stage("Git clone") { stage("Git clone") {
@ -14,7 +14,7 @@ pipeline {
stage("Training") { stage("Training") {
steps { steps {
sh "chmod 777 ml_training.py" sh "chmod 777 ml_training.py"
sh "python3 ml_training.py $EPOCH" sh "python3 ml_training.py"
} }
} }
} }