41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
pipeline {
|
|
agent {dockerfile true}
|
|
parameters {
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying test data',
|
|
name: 'BUILD_SELECTOR_CREATE_DATASET')
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying trained model',
|
|
name: 'BUILD_SELECTOR_TRAINING')
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying previous evaluation results',
|
|
name: 'BUILD_SELECTOR_EVALUATION')
|
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
|
}
|
|
stages {
|
|
stage('copyArtifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: "s434684-create-dataset", selector: buildParameter('BUILD_SELECTOR_CREATE_DATASET')
|
|
copyArtifacts fingerprintArtifacts: true, projectName: "s434684-evaluation/${params.BRANCH}", optional: True, selector: buildParameter('BUILD_SELECTOR_EVALUATION')
|
|
copyArtifacts fingerprintArtifacts: true, projectName: "s434684-training/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR_TRAINING')
|
|
}
|
|
}
|
|
stage('Sh script') {
|
|
steps {
|
|
sh 'chmod +x run_evaluation.sh'
|
|
sh './run_evaluation.sh'
|
|
|
|
|
|
}
|
|
}
|
|
stage('Archive artifacts') {
|
|
steps{
|
|
archiveArtifacts artifacts: 'evaluation.txt,mean_square_error.png'
|
|
}
|
|
}
|
|
}
|
|
}
|