-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Chrome
Jenkins ver. 2.19.4
Pipeline 2.5
May be related to
In the following situation, we have a single job that runs a function which requires a node.
Upon restart the job consumes 1 more mode than expected.
I expect only a single node to be used at any time. Before restart this is the case, after restart this is not.
The additional node is consumed until the parallel call is finished.
If this additional node happens to be the only available node then the pending jobs will be stuck waiting for executor.
Pictures attached.
To reproduce:
- Run the following pipeline script
- Once its running restart server
- Observe the build queue
This has been tested using the windows service and running from the cmdline using: "java -jar jenkins.war --httpPort=8082"
def run_function (String words){ return { node (){ sleep(300) println words } } } Map parllel_map node () { println "Using my frist node" parllel_map = [ 'A': run_function("A") ] } parallel parllel_map
A work around for this issue is to not populate the map that is passed to the parallel step inside a node: