[JIRA] (JENKINS-58014) Parallel Build with List not working as expected

6 views
Skip to first unread message

gourav.sharma@ampf.com (JIRA)

unread,
Jun 13, 2019, 2:07:02 PM6/13/19
to jenkinsc...@googlegroups.com
gourav sharma created an issue
 
Jenkins / Bug JENKINS-58014
Parallel Build with List not working as expected
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2019-06-13 18:06
Environment: Jenikns 2.164
Labels: jenkins
Priority: Minor Minor
Reporter: gourav sharma

Hello,

I am using Jenkins 2.164.1 and setting up CICD pipeline to run parallel (with sequential) in between. I am running parallel stage by passing list as input ( worked fine). But as list is huge i want to distribute the load to run the stage in chunks but in parallel. I am using collate to get the sub list but the execution happened only on first "a" and "b" and then end. Not sure why this is not working. 

Issue : The parallel execution is working only for 1st sub list returned by .collate()

here is sample code. 

 

def stepsForParallel = [:]
appBuildList =["a", "b", "c", "d","e","f","g","h","i","j"]

for (sublist in appBuildList.collate(2, true))

{

 sublist.each{  def stepName = "${it}"

stepsForParallel[stepName] = { -> echo "$it" } }

 parallel stepsForParallel 

}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

gourav.sharma@ampf.com (JIRA)

unread,
Jun 19, 2019, 10:25:01 AM6/19/19
to jenkinsc...@googlegroups.com
Change By: gourav sharma
Status: Open Fixed but Unreleased
Resolution: Fixed

gourav.sharma@ampf.com (JIRA)

unread,
Jun 19, 2019, 10:25:02 AM6/19/19
to jenkinsc...@googlegroups.com
gourav sharma commented on Bug JENKINS-58014
 
Re: Parallel Build with List not working as expected

never mind , its working fine now.  

Reply all
Reply to author
Forward
0 new messages