ium_464962/evaluation/Jenkinsfile_eval

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-05-05 23:12:50 +02:00
pipeline {
agent any
parameters {
2024-05-08 23:31:16 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Build for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
2024-05-05 23:12:50 +02:00
stages {
stage('Git Checkout') {
steps {
checkout scm
}
}
2024-05-08 23:31:16 +02:00
stage('Copy Artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset'
2024-05-13 20:32:35 +02:00
copyArtifacts filter: '*', projectName: 's464962-training/main'
2024-05-13 20:34:13 +02:00
copyArtifacts filter: '*', projectName: 's464962-evaluation.eg/main', optional: true
2024-05-08 23:31:16 +02:00
}
2024-05-05 23:12:50 +02:00
}
2024-05-08 23:31:16 +02:00
stage('Predict') {
2024-05-13 20:40:12 +02:00
agent {
dockerfile {
filename 'Dockerfile'
reuseNode true
}
}
2024-05-08 23:31:16 +02:00
steps {
sh "chmod +x ./predict.py"
sh "python ./predict.py"
archiveArtifacts artifacts: 'predicted_selling_prices.csv', onlyIfSuccessful: true
}
2024-05-05 23:12:50 +02:00
}
}
2024-05-08 23:31:16 +02:00
}