ium_434684/Jenkinsfile_evaluation

44 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-05-02 22:20:05 +02:00
pipeline {
agent {dockerfile true}
2021-05-15 19:53:28 +02:00
options {
copyArtifactPermission('s434684-evaluation/master');
}
2021-05-02 22:20:05 +02:00
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying test data',
name: 'BUILD_SELECTOR_CREATE_DATASET')
buildSelector(
2021-05-15 18:34:58 +02:00
defaultSelector: lastSuccessful(),
2021-05-02 22:20:05 +02:00
description: 'Which build to use for copying trained model',
2021-05-15 18:34:58 +02:00
name: 'BUILD_SELECTOR_TRAINING')
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying previous evaluation results',
name: 'BUILD_SELECTOR_EVALUATION')
2021-05-02 22:20:05 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages {
stage('copyArtifacts') {
steps {
2021-05-15 18:34:58 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: "s434684-create-dataset", selector: buildParameter('BUILD_SELECTOR_CREATE_DATASET')
2021-05-15 20:13:21 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: "s434684-evaluation/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR_EVALUATION')
2021-05-15 18:34:58 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: "s434684-training/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR_TRAINING')
2021-05-02 22:20:05 +02:00
}
}
stage('Sh script') {
steps {
sh 'chmod +x run_evaluation.sh'
sh './run_evaluation.sh'
}
}
stage('Archive artifacts') {
steps{
2021-05-15 19:36:52 +02:00
archiveArtifacts artifacts: 'evaluation.txt,mean_square_error.png'
2021-05-02 22:20:05 +02:00
}
}
}
}