[JIRA] (JENKINS-56562) Parallel downstream jobs are not linked correctly

13 views
Skip to first unread message

kuisathaverat@gmail.com (JIRA)

unread,
Mar 14, 2019, 10:40:01 AM3/14/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo created an issue
 
Jenkins / Bug JENKINS-56562
Parallel downstream jobs are not linked correctly
Issue Type: Bug Bug
Assignee: Andrew Bayer
Attachments: mainJob-stage-1-ok.png, mainJob-stage-2-ok.png
Components: blueocean-plugin, pipeline-model-definition-plugin
Created: 2019-03-14 14:39
Priority: Major Major
Reporter: Ivan Fernandez Calvo

If you have a main job that triggers a build and wait for the result, you should show the downstream job in the stage, but is not on every case if you use the parallel step, and it never shows if you use the parallel directive in a declarative pipeline

MainJob 1

pipeline {
    agent any
    stages {
        stage('Run Tests') {
            steps {
                parallel(
                    'Stage 1': {build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '3')]},
                    'Stage 2': {build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '4')]}
                )
            }
        }
    }
}


MainJob 2

pipeline {
    agent any
    stages {
        stage('Run Tests') {
            parallel {
                stage('Stage 1') {
                    steps {
                       build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '1')]
                    }
                }
                stage('Stage 2') {
                    steps {
                        build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '3')]
                    }
                }
            }
        }
    }
}



Downstream job

pipeline {
    agent any
    parameters {
        string(name: 'VAR', defaultValue: "1")
    }
    stages {
        stage('Downstream') {
            steps {
                echo "NOOP"
            }
        }
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kuisathaverat@gmail.com (JIRA)

unread,
Mar 14, 2019, 10:40:02 AM3/14/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Change By: Ivan Fernandez Calvo
Attachment: mainJob-stage-1-ok.png
Attachment: mainJob-stage-2-ok.png

kuisathaverat@gmail.com (JIRA)

unread,
Mar 14, 2019, 10:41:01 AM3/14/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Attachment: mainJob-fail-2.png
Attachment: mainJob-fail.png

kuisathaverat@gmail.com (JIRA)

unread,
Mar 14, 2019, 10:53:03 AM3/14/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Attachment: mainJob-fail-2-1.png
Attachment: mainJob-fail-2-2.png
Attachment: mainJob-fail-2-3.png

kuisathaverat@gmail.com (JIRA)

unread,
Mar 14, 2019, 10:54:01 AM3/14/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo commented on Bug JENKINS-56562
 
Re: Parallel downstream jobs are not linked correctly

also if the parallel steps are equals, only links one of the stages with the downstream job even do two jobs were launched

pipeline {
    agent any
    stages {
        stage('Run Tests') {
            steps {
                parallel(
                    'Stage 1': {build job: 'downstreamJob'
},
                    
'Stage 2': {build job: 'downstreamJob'
}
                )
            }
        }
    }
}



kuisathaverat@gmail.com (JIRA)

unread,
Jul 25, 2019, 6:07:02 AM7/25/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Attachment: Screenshot 2019-07-25 at 12.00.40.png
Attachment: Screenshot 2019-07-25 at 12.01.14.png

kuisathaverat@gmail.com (JIRA)

unread,
Jul 25, 2019, 6:21:04 AM7/25/19
to jenkinsc...@googlegroups.com
 
Re: Parallel downstream jobs are not linked correctly

We saw that there is a request that it is not made in some cases, it is completely random, I did not find any pattern

This build does not link downstream jobs
https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests/detail/7.x/36/pipeline/78/

This build is OK
https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests/detail/7.x/34/pipeline/78

I have captured a couple of HAR files from the job that works and the one that does not works
har-ok.json fail-har.json

kuisathaverat@gmail.com (JIRA)

unread,
Jul 25, 2019, 6:21:04 AM7/25/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Attachment: har-ok.json
Attachment: fail-har.json

kuisathaverat@gmail.com (JIRA)

unread,
Jul 25, 2019, 6:23:02 AM7/25/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo edited a comment on Bug JENKINS-56562
 
Re: Parallel downstream jobs are not linked correctly
We saw 've seen that there is a request that it is not made in some cases, it is completely random, I did not find any pattern

!Screenshot 2019-07-25 at 12.00.40.png|thumbnail!

!Screenshot 2019-07-25 at 12.01.14.png|thumbnail!

This build does not link downstream jobs
https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests/detail/7.x/36/pipeline/78/

This build is OK
https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests/detail/7.x/34/pipeline/78

I have captured a couple of HAR files from the job that works and the one that does not works
[^har-ok.json]  [^fail-har.json]  

kuisathaverat@gmail.com (JIRA)

unread,
Jul 25, 2019, 6:26:03 AM7/25/19
to jenkinsc...@googlegroups.com
We've seen that there is a request that it is not made in some cases, it is completely random, I did not find any pattern


!Screenshot 2019-07-25 at 12.00.40.png|thumbnail!

!Screenshot 2019-07-25 at 12.01.14.png|thumbnail!

This build does not link downstream jobs
https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests/detail/7.x/36/pipeline/78/

This build is OK
https://apm-ci.elastic.co/blue/organizations/jenkins/apm-integration-tests/detail/7.x/34/pipeline/78

I have captured a couple of HAR files from the job that works and the one that does not works
[^har-ok.json]  [^fail-har.json]  

kuisathaverat@gmail.com (JIRA)

unread,
Jul 25, 2019, 7:49:02 AM7/25/19
to jenkinsc...@googlegroups.com
We've seen that there is a request that it is not made in some cases, it is completely random, I did not find any pattern

!Screenshot 2019-07-25 at 12.00.40.png|thumbnail!

!Screenshot 2019-07-25 at 12.01.14.png|thumbnail!

This build does not link downstream jobs

I have captured a couple of HAR files from the job that works and the one that does not works
[^har-ok.json]  [^fail-har.json]  

this is the current pipeline https://github.com/elastic/apm-integration-testing/blob/6ee572b5efbb593204f97427139421727684bb6e/.ci/Jenkinsfile

z@zhengjiefu.com (JIRA)

unread,
Oct 10, 2019, 10:28:02 PM10/10/19
to jenkinsc...@googlegroups.com

We're having a hard time without downstream jobs linked(more switching between blue ocean/classic, opening huge build log to find links), would really appreciate this issue to be fixed, and sorry for the spam. Orz Orz Orz

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages