ium_z487175/Jenkinsfile-evaluation

37 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-06-08 08:12:42 +02:00
pipeline{
agent any
2023-06-08 09:01:31 +02:00
parameters {
gitParameter(
name: 'BRANCH',
type: 'branch',
defaultValue: 'master',
description: 'Select the branch of training'
)
}
2023-06-08 08:12:42 +02:00
stages{
stage('Copy model artifacts with test dataset') {
steps {
copyArtifacts(
projectName: 'z-s487175-training',
2023-06-08 09:01:31 +02:00
fingerprintArtifacts: true,
2023-06-08 10:34:16 +02:00
selector: [$class: 'SpecificBuildSelector', buildNumber: "lastSuccessfulBuild"]
2023-06-08 08:12:42 +02:00
)
}
}
stage('Train model'){
steps{
sh "docker run -v ${env.WORKSPACE}/dane:/app ium python3 /app/DL-prediction.py"
}
}
stage('Archive prediction results'){
steps{
sh "docker cp \$(docker ps -l -q):/app/results_prediction.csv ${env.WORKSPACE}"
archiveArtifacts artifacts: 'results_prediction.csv', fingerprint: true
}
}
}
}