Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Jenkins 1.611, NodeLabel 1.5.1, Rebuild 1.22
Description
When using the multi-job plugin to instruct a child job to run on a specified node, the child job cannot be rebuilt using the rebuild plugin.
When the job is rebuilt, the value of the NodeChoice field is populated on the screen however this is not read in by the NodeLabel plugin. The job then hangs in the queue with the status "(pending—Waiting for next available executor)".
If the child job is built directly without a parent job, the rebuild successfully reads the Node label and then runs on the given node.
Looking at the difference in the HTML, the input field for the node choice has a differing name on scendario 1 against scenario two:
Scenario 1 (failed):
<input name="label" value="" class="setting-input " type="text">
Scenario 2 (successful):
<input name="labels" value="" class="setting-input " type="text">
Code changed in jenkins
User: imod
Path:
src/main/java/org/jvnet/jenkins/plugins/nodelabelparameter/NodeParameterDefinition.java
http://jenkins-ci.org/commit/nodelabelparameter-plugin/2f943a16d1f55f1f6eb328a34ef348c69db3b800
Log:
JENKINS-28374add comment about issue