Update Jenkinsfile

This commit is contained in:
s464962 2024-05-05 22:31:51 +02:00
parent 8d5ebbe7d2
commit c5448c5a80
1 changed files with 15 additions and 0 deletions

15
Jenkinsfile vendored
View File

@ -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') {
steps {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true