Update evaluation/Jenkinsfile_eval

This commit is contained in:
s464962 2024-05-08 23:31:16 +02:00
parent 52e0cbcf51
commit 0ad8b95e2d

View File

@ -1,33 +1,31 @@
pipeline { pipeline {
agent any agent any
parameters { parameters {
buildSelector ( buildSelector(
defaultSelector: lastSuccessful(), defaultSelector: lastSuccessful(),
description: 'Build for copying artifacts', description: 'Build for copying artifacts',
name: 'BUILD_SELECTOR' name: 'BUILD_SELECTOR'
) )
} }
stages { stages {
stage('Git Checkout') { stage('Git Checkout') {
steps { steps {
checkout scm checkout scm
} }
} }
stage('Copy Artifacts') { stage('Copy Artifacts') {
steps { steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset' copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset'
copyArtifacts filter: '*', projectName: 's464962-training copyArtifacts filter: '*', projectName: 's464962-training'
copyArtifacts filter: '*', projectName: 's464962-evaluation.eg', optional: true 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
}
}
}
}