Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64591

Multi-configuration project ALWAYS triggers parametrized build for ALL childs if a pipeline job in the project list to build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • Jenkins Version: 2.263.1
      Parametrized trigger Plugin Version : 2.39

      Let's compare behavior of  a pipeline job and a freestyle job when they are triggered as parametrized build in the Post-Build section from a Mutli-configuration job.

      In my example I have a multi-configuration job :

      test-parametrizedPlugin-multi-conf-job that calls 2 jobs one freestyle and one pipeline :

      • test-parametrizedPlugin-called-pipeline-job
      • test-parametrizedPlugin-called-freestyle-job

       

      First test, the 2 jobs are in the same Projects to build list( Note that the Trigger build from child project option is not set ):

      Then the 2 jobs are triggered for each child as we can see as it is reported in the console logs of the 2 called jobs.

      Second test, the 2 jobs are in separate Projects to build list( Note that the Trigger build from child project option is not set ) :

      Then the 2 jobs are triggered but not with the same behavior,

      freestyle job is run as expected :

      but pipeline job is run for each child as we can see as it is reported in the console log:

        1. image-2021-01-11-12-30-19-317.png
          47 kB
          Damien Merlin
        2. image-2021-01-11-12-28-05-382.png
          26 kB
          Damien Merlin
        3. image-2021-01-11-12-25-08-737.png
          16 kB
          Damien Merlin
        4. image-2021-01-11-12-18-12-082.png
          58 kB
          Damien Merlin
        5. image-2021-01-11-12-16-43-482.png
          48 kB
          Damien Merlin
        6. image-2021-01-11-09-29-16-578.png
          58 kB
          Damien Merlin
        7. image-2021-01-11-09-16-21-386.png
          11 kB
          Damien Merlin
        8. image-2021-01-11-09-16-00-517.png
          10 kB
          Damien Merlin

            Unassigned Unassigned
            merlindam Damien Merlin
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: