Use dockerfile in Jenkins
Some checks failed
s444380-training/pipeline/head There was a failure building this commit

This commit is contained in:
Kamil Guttmann 2022-05-07 21:00:13 +02:00
parent 798937cb87
commit 6eb45183ed

View File

@ -1,6 +1,6 @@
pipeline { pipeline {
agent { agent {
docker { image 'kamilguttmann/ium:train' } dockerfile true
} }
parameters { parameters {
string ( string (
@ -28,7 +28,7 @@ pipeline {
stage("Train model") { stage("Train model") {
steps { steps {
sh "chmod u+x ./train_model.py" sh "chmod u+x ./train_model.py"
sh "python3 ./train_model.py with 'epcohs=$EPOCHS'" sh "python3 ./train_model.py with 'epochs=$EPOCHS'"
archiveArtifacts artifacts: "model/*, out.csv, experiments/*/*", onlyIfSuccessful: true archiveArtifacts artifacts: "model/*, out.csv, experiments/*/*", onlyIfSuccessful: true
} }
} }