Use dockerfile in Jenkins
Some checks failed
s444380-training/pipeline/head There was a failure building this commit
Some checks failed
s444380-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
798937cb87
commit
6eb45183ed
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user