28 lines
805 B
Plaintext
28 lines
805 B
Plaintext
pipeline{
|
|
agent any
|
|
|
|
stages{
|
|
stage('Copy model artifacts with test dataset') {
|
|
steps {
|
|
copyArtifacts(
|
|
projectName: 'z-s487175-training',
|
|
fingerprintArtifacts: true,
|
|
selector: buildParameter('BUILD_SELECTOR')
|
|
)
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
} |