Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
jenkins 1.643
nodelabel parameter plugin 1.7
workflow plugin 1.12
Description
- 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
Attachments
Issue Links
- 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
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is related to |
Description |
# 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: {code} node { echo STRING_PARAM1 echo NODE_PARAM1 } {code} If you run this workflow, you will get an error: {code} groovy.lang.MissingPropertyException: No such property: NODE_PARAM1 for class: WorkflowScript {code} 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 |
# 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: {code} node { echo STRING_PARAM1 echo NODE_PARAM1 } {code} If you run this workflow, you will get an error: {code} groovy.lang.MissingPropertyException: No such property: NODE_PARAM1 for class: WorkflowScript {code} 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 |
Link | This issue is related to JENKINS-22718 [ JENKINS-22718 ] |
Link |
This issue is related to |
Link | This issue is related to JENKINS-22718 [ JENKINS-22718 ] |
Description |
# 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: {code} node { echo STRING_PARAM1 echo NODE_PARAM1 } {code} If you run this workflow, you will get an error: {code} groovy.lang.MissingPropertyException: No such property: NODE_PARAM1 for class: WorkflowScript {code} 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 |
# 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: {code} node { echo STRING_PARAM1 echo NODE_PARAM1 } {code} If you run this workflow, you will get an error: {code} groovy.lang.MissingPropertyException: No such property: NODE_PARAM1 for class: WorkflowScript {code} 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 |
Component/s | workflow-plugin [ 18820 ] |
Labels | workflow |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Workflow | JNJira [ 167786 ] | JNJira + In-Review [ 198274 ] |
Labels | workflow | pipeline workflow |
Labels | pipeline workflow | pipeline |
Link |
This issue is duplicated by |
Status | Resolved [ 5 ] | Closed [ 6 ] |
See fix: https://github.com/jenkinsci/nodelabelparameter-plugin/pull/10/commits