Fixes for passing git parameters
Some checks failed
s434704-training/pipeline/head There was a failure building this commit

This commit is contained in:
Wojciech Jarmosz 2021-05-14 12:35:24 +02:00
parent 73235c7614
commit ecfb0ba459
2 changed files with 3 additions and 4 deletions

View File

@ -4,13 +4,12 @@ pipeline {
}
parameters {
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build training', name: 'BUILD_SELECTOR_TRAINING'),
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'branchName', type: 'PT_BRANCH',
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH',
}
stages {
stage("Copy artifacts"){
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-training/${params.branchName}', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-training/${params.BRANCH}', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-evaluation', selector: buildParameter(lastSuccessful(), optional: true)
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: buildParameter(lastSuccessful())
}

View File

@ -30,7 +30,7 @@ pipeline {
}
success {
build job: 's434704-evaluation', parameters: [
gitParameter(name: 'branchName', value: "${params.BRANCH}")
gitParameter(name: 'BRANCH', value: ${params.BRANCH}, type: 'PT_BRANCH')
], wait: false
}
}