Update Jenkinsfile
This commit is contained in:
parent
821d0d7e9c
commit
9413b985c5
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -38,12 +38,14 @@ pipeline {
|
||||
|
||||
stage('Train and Predict') {
|
||||
steps {
|
||||
script {
|
||||
def customImage = docker.build("custom-image")
|
||||
customImage.inside {
|
||||
sh 'python3 ./model.py'
|
||||
sh 'python3 ./prediction.py'
|
||||
archiveArtifacts artifacts: 'model.pth, predictions.txt', onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user