Fixes for passing git parameters
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
73235c7614
commit
ecfb0ba459
@ -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())
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user