-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Major
-
Component/s: git-parameter-plugin
-
None
-
Environment:Jenkins: 2.516.1
Git Parameter Plugin: 444.vca_b_84d3703c2
After upgrading git-parameter plugin from 439.vb_0e46ca_14534 to 444.vca_b_84d3703c2 we started having errors in some of our jobs:
ERROR: Invalid parameter value: (StringParameterValue) BRANCH='new-branch'
When Bitbucket PR is created it automatically runs a jobs from new-branch and passes this branch to a different job B. Job B does have a parameter (DSL snippet):
Â
gitParameter {
type('PT_BRANCH')
name('BRANCH')
useRepository('$repositoryUrl')
description('Choose branch from $repositoryName repository')
defaultValue('$branchName')
selectedValue('DEFAULT')
sortMode('ASCENDING_SMART')
branchFilter('origin/(.*)')
tagFilter('*')
quickFilterEnabled(true)
branch('')
}
Â
When it tries to run, it throws error ERROR: Invalid parameter value: (StringParameterValue) BRANCH='new-branch' even though this branch exists (because it's the same repository).
Â
If we refresh the branch list on this job beforehand - the pipeline works.
After reverting the version - the pipeline works as well.