[JIRA] (JENKINS-60442) Logs lost for declarative parallel child job builds

5 views
Skip to first unread message

sdurand@equalexperts.com (JIRA)

unread,
Dec 11, 2019, 7:54:03 AM12/11/19
to jenkinsc...@googlegroups.com
Samuel Durand created an issue
 
Jenkins / Bug JENKINS-60442
Logs lost for declarative parallel child job builds
Issue Type: Bug Bug
Assignee: Unassigned
Components: jenkinsfile-runner
Created: 2019-12-11 12:53
Priority: Minor Minor
Reporter: Samuel Durand

When using declarative pipelines in combination with parallel builds and sub job starting, the build logs are lost.

 

Example: 

stage('Check pipelines') {
        parallel {
            stage('Check Java pipeline') {
                steps {
                    script {
                        build job:'../dcx-service-template/master',
                        parameters: [string(name: 'SHARED_PIPELINE_BRANCH', value: "${GIT_BRANCH}")]
                    }
                }
            }
            stage('Check NodeJs pipeline') {
                steps {
                    script {
                        build job:'../jenkins-pipeline-testing-nodejs/master',
                        parameters: [string(name: 'SHARED_PIPELINE_BRANCH', value: "${GIT_BRANCH}")]
                    }
                }
            }
        }
    }
}

This will work and execute properly, but the build logs will disappear after the firrst "build job", which will make it look like this : 

[...]
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Check pipelines)
[Pipeline] parallel
[Pipeline] { (Branch: Check Java pipeline)
[Pipeline] { (Branch: Check NodeJs pipeline)
[Pipeline] script
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] build (Building ShopDirect » dcx-service-template » master)
Scheduling project: ShopDirect » dcx-service-template » master
[Pipeline] build (Building ShopDirect » jenkins-pipeline-testing-nodejs » master)

And the logs will stop there instead of displaying the number of the child jobs once they start, and display the following steps logs

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

sdurand@equalexperts.com (JIRA)

unread,
Dec 11, 2019, 7:54:03 AM12/11/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 21, 2020, 4:59:03 AM4/21/20
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Component/s: _unsorted
Component/s: jenkinsfile-runner
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages