Update Jenkinsfile
This commit is contained in:
parent
8d5ebbe7d2
commit
c5448c5a80
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -35,6 +35,21 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Train and predict') {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile'
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh "chmod +x ./model.py"
|
||||||
|
sh "chmod +x ./predict.py"
|
||||||
|
sh "python ./model.py"
|
||||||
|
sh "python .predict.py"
|
||||||
|
archiveArtifacts artifacts: 'predicted_selling_prices.csv', onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Archive Results') {
|
stage('Archive Results') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
||||||
|
Loading…
Reference in New Issue
Block a user