added Jenkins to evaluation
This commit is contained in:
parent
7e8556763f
commit
5f64f6ecb3
36
evaluation/Jenkinsfile_eval
Normal file
36
evaluation/Jenkinsfile_eval
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters {
|
||||||
|
buildSelector (
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Build for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
triggers {
|
||||||
|
upstream(upstreamProjects: 's464962-training, threshold: hudson.model.Result.SUCCESS)
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Git Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Copy Artifacts') {
|
||||||
|
steps {
|
||||||
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
|
copyArtifacts filter: '*', projectName: 's464962-training, selector: buildParameter('BUILD_SELECTOR')
|
||||||
|
copyArtifacts filter: '*', projectName: 's464962-evaluation.eg', selector: buildParameter('BUILD_SELECTOR'), optional: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Predict') {
|
||||||
|
steps {
|
||||||
|
sh "chmod +x ./predict.py"
|
||||||
|
sh "python .predict.py"
|
||||||
|
archiveArtifacts artifacts: 'predicted_selling_prices.csv', onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user