From 0ad8b95e2d41fdc5c2e9c3cce51b7193198d77ba Mon Sep 17 00:00:00 2001 From: s464962 Date: Wed, 8 May 2024 23:31:16 +0200 Subject: [PATCH] Update evaluation/Jenkinsfile_eval --- evaluation/Jenkinsfile_eval | 42 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/evaluation/Jenkinsfile_eval b/evaluation/Jenkinsfile_eval index d4e5956..f941f1f 100644 --- a/evaluation/Jenkinsfile_eval +++ b/evaluation/Jenkinsfile_eval @@ -1,33 +1,31 @@ pipeline { agent any parameters { - buildSelector ( - defaultSelector: lastSuccessful(), - description: 'Build for copying artifacts', - name: 'BUILD_SELECTOR' - ) - } + buildSelector( + defaultSelector: lastSuccessful(), + description: 'Build for copying artifacts', + name: 'BUILD_SELECTOR' + ) + } stages { stage('Git Checkout') { steps { checkout scm } } - stage('Copy Artifacts') { - steps { - copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset' - copyArtifacts filter: '*', projectName: 's464962-training - copyArtifacts filter: '*', projectName: 's464962-evaluation.eg', optional: true + stage('Copy Artifacts') { + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset' + copyArtifacts filter: '*', projectName: 's464962-training' + copyArtifacts filter: '*', projectName: 's464962-evaluation.eg', optional: true + } + } + stage('Predict') { + steps { + sh "chmod +x ./predict.py" + sh "python ./predict.py" + archiveArtifacts artifacts: 'predicted_selling_prices.csv', onlyIfSuccessful: true + } } } - stage('Predict') { - steps { - sh "chmod +x ./predict.py" - sh "python .predict.py" - archiveArtifacts artifacts: 'predicted_selling_prices.csv', onlyIfSuccessful: true - } - } - - - } -} \ No newline at end of file +}