-
Bug
-
Resolution: Fixed
-
Major
-
jenkins 1.643
nodelabel parameter plugin 1.7
workflow plugin 1.12
- Install the nodelabel parameter plugin, and workflow plugin
- create a workflow, with one string parameter (STRING_PARAM1), and one node parameter (NODE_PARAM1)
- create a workflow like this:
node { echo STRING_PARAM1 echo NODE_PARAM1 }
If you run this workflow, you will get an error:
groovy.lang.MissingPropertyException: No such property: NODE_PARAM1 for class: WorkflowScript
The problem is that the NodeLabel parameter plugin overrides buildEnvVars which was deprecated in Jenkins 1.344: see http://javadoc.jenkins-ci.org/hudson/model/ParameterValue.html#buildEnvVars%28hudson.model.AbstractBuild,%20java.util.Map%29
It needs to override buildEnvironment(). This is similar to the problem in JENKINS-27718
- is duplicated by
-
JENKINS-32464 Label parameter used when called from a freestyle job, but not from a workflow
- Closed
- is related to
-
JENKINS-27718 Build parameter for "List Subversion Tags (and more)" is not exposed to workflow script.
- Resolved
-
JENKINS-26694 Workflow build Parameters are not exposed to CopyArtifact
- Closed