-
Bug
-
Resolution: Unresolved
-
Minor
Bare access of parameters fails the first time a job with parameters is run. It also fails when parameter names change. This produces inconsistent pipeline results depending on when the pipeline is run (first run or not).
A recent PR ( https://github.com/jenkins-infra/jenkins.io/pull/746 ) was filed to change the documentation to say code should use params.NAME instead of bare NAME. There have also been multiple bugs filed by users getting bit by this:
See https://issues.jenkins-ci.org/browse/JENKINS-40631 among many others.
Given the confusion and error prone nature of bare access, we should make bare access obsolete and move toward removing it - all parameter access should be via "params.ParameterName" path.
[JENKINS-42729] Remove bare parameters from pipeline binding context
Component/s | Original: pipeline-model-definition-plugin [ 21706 ] |
Assignee | Original: Andrew Bayer [ abayer ] | New: Jesse Glick [ jglick ] |
Labels | New: usability |
Labels | Original: usability | New: triaged-2018-11 usability |