[JIRA] (JENKINS-58166) build step does not execute a job if the call is not different

0 views
Skip to first unread message

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 10:41:02 AM6/24/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
 
Jenkins / Bug JENKINS-58166
build step does not execute a job if the call is not different
Change By: Ivan Fernandez Calvo
Summary: downstream jobs lose the build step does not execute a job link if the call is not different
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 10:43:02 AM6/24/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
If you launch a job with the build step on a parallel way only the first stage has the link to the downstream job, this should change recently it was working using the parallel step, and it was not working with parallel stages, now both are broken. Digging a little seems like build step does not execute a job if the call is not different, so it is not possible to run the same job N times with the build step on parallel stages, even do in concurrent builds.

!image-2019-06-24-15-43-26-909.png|thumbnail!
!image-2019-06-24-15-43-39-955.png|thumbnail!
!image-2019-06-24-15-43-49-073.png|thumbnail!
!image-2019-06-24-15-43-57-438.png|thumbnail!

Main job

{code}
pipeline {
  agent { label 'master' }
  stages {
    stage('Parallel step'){
      steps {
          script {
              def parallelTasks = [:]
              parallelTasks['pstep-01'] = {build job: 'test-dummy', quietPeriod: 15}
              parallelTasks['pstep-02'] = {build job: 'test-dummy', quietPeriod: 15}
              parallelTasks['pstep-03'] = {build job: 'test-dummy', quietPeriod: 15}
              parallelTasks['pstep-04'] = {build job: 'test-dummy', quietPeriod: 15}
              parallelTasks['pstep-05'] = {build job: 'test-dummy', quietPeriod: 15}
              parallelTasks['pstep-06'] = {build job: 'test-dummy', quietPeriod: 15}
              parallelTasks['pstep-07'] = {build job: 'test-dummy', quietPeriod: 15}
              parallelTasks['pstep-08'] = {build job: 'test-dummy', quietPeriod: 15}
              parallel(parallelTasks)
          }
      }
    }
    stage('Parallel stages'){
      parallel {
        stage('ps-01'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
        stage('ps-02'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
        stage('ps-03'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
        stage('ps-04'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
        stage('ps-05'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
        stage('ps-06'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
        stage('ps-07'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
        stage('ps-08'){
            steps{
                build job: 'test-dummy', quietPeriod: 15
            }
        }
      }
    }
  }
}
{code}

test-dummy job, it is configured to keep 100 builds

{code}
node(){
echo "hello"
}
{code}

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 10:54:02 AM6/24/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo commented on Bug JENKINS-58166
 
Re: build step does not execute a job if the call is not different

if you set the wait to false it does not help also

node(){
    def parallelTasks = [:]
    parallelTasks['pstep-01'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-02'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-03'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-04'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-05'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-06'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-07'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-08'] = {build job: 'test-dummy', quietPeriod: 15}
    parallel(parallelTasks)
}
Starting building: test-dummy #63

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 10:55:01 AM6/24/19
to jenkinsc...@googlegroups.com
if you set the wait to false it does not help also

{code}

node(){
    def parallelTasks = [:]
    parallelTasks['pstep-01'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-02'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-03'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-04'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-05'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-06'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-07'] = {build job: 'test-dummy', quietPeriod: 15, wait: false}
    parallelTasks['pstep-08'] = {build job: 'test-dummy', quietPeriod: 15 , wait: false }
    parallel(parallelTasks)
}
{code}

{code}
Starting building: test-dummy #63
{code}

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 11:12:02 AM6/24/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Environment: Jenkins ver. 2.179 and , Jenkins ver. 2.182 , and Jenkins ver. 2.150.2
BO 1.16.0 and BO 1.17.0

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 11:17:03 AM6/24/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Environment: Jenkins ver. 2.179, Jenkins ver. 2.182, and Jenkins ver. 2.150.2

BO 1.16.0 and BO 1.17.0

Pipeline: 2.6
Pipeline: API 2.35
Pipeline: Build Step 2.9
Pipeline: Declarative 1.3.9
Pipeline: Groovy 2.70

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 11:31:02 AM6/24/19
to jenkinsc...@googlegroups.com
 
Re: build step does not execute a job if the call is not different
Ok, in the example it only launching 2 jobs one per parallel block, it does not correct I've launched 16 jobs

{code}
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
Starting building: test-dummy #19
Starting building: test-dummy #19
Starting building: test-dummy #19
Starting building: test-dummy #19
Starting building: test-dummy #19
Starting building: test-dummy #19
Starting building: test-dummy #19
Starting building: test-dummy #19
{code}

{code}
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy) (hide)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
[Pipeline] build (Building test-dummy)
Scheduling project: test-dummy
Starting building: test-dummy #20
Starting building: test-dummy #20
Starting building: test-dummy #20
Starting building: test-dummy #20
Starting building: test-dummy #20
Starting building: test-dummy #20
Starting building: test-dummy #20
Starting building: test-dummy #20
{code}

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 11:31:02 AM6/24/19
to jenkinsc...@googlegroups.com
Ok, in the example it only launching 2 jobs one per parallel block, it does not correct I've launched 16 jobs , but this would be another bug

kuisathaverat@gmail.com (JIRA)

unread,
Jun 24, 2019, 11:32:02 AM6/24/19
to jenkinsc...@googlegroups.com
in the example , it only launching launches 2 jobs one per parallel block, it does not correct I've launched 16 jobs
Reply all
Reply to author
Forward
0 new messages