ium_434684/Jenkinsfile_evaluation
2021-05-02 22:20:05 +02:00

37 lines
1.2 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: upstream(),
description: 'Which build to use for copying trained model',
name: 'BUILD_SELECTOR_TRAINING')
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-training/${params.BRANCH}', selector: buildParameter('BUILD_SELECTOR_TRAINING')
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-evaluation/${params.BRANCH}', selector: lastSuccessful(), optional: True
}
}
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'
}
}
}
}