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') {
|
stage('Train and Predict') {
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
def customImage = docker.build("custom-image")
|
def customImage = docker.build("custom-image")
|
||||||
customImage.inside {
|
customImage.inside {
|
||||||
sh 'python3 ./model.py'
|
sh 'python3 ./model.py'
|
||||||
sh 'python3 ./prediction.py'
|
sh 'python3 ./prediction.py'
|
||||||
archiveArtifacts artifacts: 'model.pth, predictions.txt', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'model.pth, predictions.txt', onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user