Change By: Roberto González (24/Nov/13 7:30 PM)
Attachment: schema-jenkins.JPG
Description: If the user makes a flow that has a N jobs in parallel (N given by another job, or param), the main job cant calculate the time that the actual build has been executing.

Example:

 def jobB= { 
      tests= parallel( 
        (0..lastPos).collect { ctr >
          return { 
            ignore(UNSTABLE) { 
           
             ejec= build ( 
                "JOB_TEST", params like array[ctr]...)
            } 
          }
        } 
      ) 
    }

//we launch the builds
def job2= { [ jobA, jobB ].each{it()} }
 parallel(job1, job2)
}

this example launchs job1 and job2 in parallel, and job2 triggers jobA, and then N builds of jobB, where N is the size of an array.


so we have main
the schema of the  job  --->---->job1------------------->  is attached as a image
                        \---jobA--->jobB(1)---/
                                 \-jobB(2)---/
                                  and N builds of jobB.

If we have this example, when the main job is running, we hover the mouse in the loading bar of the job we can see "Build has been executing for null"

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to