Need branch name and other details from parallel branches

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    Is there a way to get which parallel branch is failing and get more details on the steps being executed/logs of that failure.
    Other objective is to compile list of all failed branches.

    def list=[ "abc" , "def" , "xyz" , "pqr" ]
    def branches = [:]
    def listLength=list.size()
    
    for (i=0;i<listLength;i++) {
        def excl = list.get(i);
        branches[excl]={
            node (){
            	sh """echo hello $excl"""
            	scm
            	sh " ant build.xml"
            	mail
    
            }
        }
    }
    
    try {
        parallel branches
    } catch(err) {
        print err
        <GET_PARALLEL_BRANCH_NAME/FAILURE_DETAILS>
    }
    

          Assignee:
          Jesse Glick
          Reporter:
          Ashudeep Budhiraja
          Archiver:
          Jenkins Service Account

            Created:
            Updated:
            Resolved:
            Archived: