From c5448c5a80ab4db60822053626d0732fead27345 Mon Sep 17 00:00:00 2001 From: s464962 Date: Sun, 5 May 2024 22:31:51 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2be7fad..f2f43a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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