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

Only one downstream pipeline per parent pom dependency is triggered

    Details

    • Similar Issues:

      Description

      Only one downstream pipeline per parent pom dependency is triggered.

      The other downstream pipelines are ignored.


      +----------------+                                                                                                 
      |                |                                                                                                 
      | parent-module  |                                                                                                 
      |   (pom file)   -------------------------------------------------------------------------------+                  
      |                ---------------------------------------------+                                 |                  
      +--------|---|---+                                            |                                 |                  
               |   |                                                |                                 |                  
               |   |                                                |                                 |                  
               |   |           +--------------------+               |                                 |                  
               |   |           |                    |               |                                 |                  
               |   +------------  low-level-module-1|----           |                                 |                  
               |               |                    |   |     +-----|-----------------+         +-----|---------------+  
               |               +--------------------+   +------                       |         |                     |  
               |                                              | middle-level-module-1 ----------- top-level-module-1  |  
               |               +--------------------+   +------                       |         |                     |  
               |               |                    |   |     +-----------------------+         +---------------------+  
               +---------------- low-level-module-2 -----                                                                
                               |                    |                                                                    
                               +--------------------+                                                                    
                                                                                                                         
                                                                                                                         
      
      • New snapshot created on parent-module will trigger all downstream pipelines (low-level-module-1 & 2, middle-level-module-1 and top-level-module-1
      • Downstream pipeline triggers will be optimized: trigger of middle-level-module-1 and top-level-module-1 will wait for low-level-module-1 & 2 to finish
      • failure on downstream pipelines will not "break the chain" (see JENKINS-55336 ) and a failure of middle-level-module-1 will not prevent top-level-module-1 to be triggered (will be triggered after the failure of "middle-level-module-1" with the following message on "middle-level-module-1":
        [withMaven] downstreamPipelineTriggerRunListener - Triggering downstream pipeline plugins » pipeline-maven-plugin » jenkins-55336 » jenkins-55336-top-level-module » master#2 due to dependency on io.jenkins.jenkins_55336:jenkins-55336-middle-level-1:jar:2.0.8-SNAPSHOT(2.0.8-20190114.113751-7) ...
        

        Attachments

          Issue Links

            Activity

            cleclerc Cyrille Le Clerc created issue -
            cleclerc Cyrille Le Clerc made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            cleclerc Cyrille Le Clerc made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            cleclerc Cyrille Le Clerc made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            cleclerc Cyrille Le Clerc made changes -
            Link This issue relates to JENKINS-55336 [ JENKINS-55336 ]
            cleclerc Cyrille Le Clerc made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            cleclerc Cyrille Le Clerc made changes -
            Description Only one downstream pipeline per parent pom dependency is triggered.

            The other downstream pipelines are ignored.
            Only one downstream pipeline per parent pom dependency is triggered.

            The other downstream pipelines are ignored.


            ----

            {noformat}
            +----------------+
            | |
            | parent-module |
            | (pom file) -------------------------------------------------------------------------------+
            | ---------------------------------------------+ |
            +--------|---|---+ | |
                     | | | |
                     | | | |
                     | | +--------------------+ | |
                     | | | | | |
                     | +------------ low-level-module-1|---- | |
                     | | | | +-----|-----------------+ +-----|---------------+
                     | +--------------------+ +------ | | |
                     | | middle-level-module-1 ----------- top-level-module-1 |
                     | +--------------------+ +------ | | |
                     | | | | +-----------------------+ +---------------------+
                     +---------------- low-level-module-2 -----
                                     | |
                                     +--------------------+
                                                                                                                               
                                                                                                                               
            {noformat}
            cleclerc Cyrille Le Clerc made changes -
            Description Only one downstream pipeline per parent pom dependency is triggered.

            The other downstream pipelines are ignored.


            ----

            {noformat}
            +----------------+
            | |
            | parent-module |
            | (pom file) -------------------------------------------------------------------------------+
            | ---------------------------------------------+ |
            +--------|---|---+ | |
                     | | | |
                     | | | |
                     | | +--------------------+ | |
                     | | | | | |
                     | +------------ low-level-module-1|---- | |
                     | | | | +-----|-----------------+ +-----|---------------+
                     | +--------------------+ +------ | | |
                     | | middle-level-module-1 ----------- top-level-module-1 |
                     | +--------------------+ +------ | | |
                     | | | | +-----------------------+ +---------------------+
                     +---------------- low-level-module-2 -----
                                     | |
                                     +--------------------+
                                                                                                                               
                                                                                                                               
            {noformat}
            Only one downstream pipeline per parent pom dependency is triggered.

            The other downstream pipelines are ignored.


            ----

            {noformat}
            +----------------+
            | |
            | parent-module |
            | (pom file) -------------------------------------------------------------------------------+
            | ---------------------------------------------+ |
            +--------|---|---+ | |
                     | | | |
                     | | | |
                     | | +--------------------+ | |
                     | | | | | |
                     | +------------ low-level-module-1|---- | |
                     | | | | +-----|-----------------+ +-----|---------------+
                     | +--------------------+ +------ | | |
                     | | middle-level-module-1 ----------- top-level-module-1 |
                     | +--------------------+ +------ | | |
                     | | | | +-----------------------+ +---------------------+
                     +---------------- low-level-module-2 -----
                                     | |
                                     +--------------------+
                                                                                                                               
                                                                                                                               
            {noformat}

            * New snapshot created on parent-module will trigger all downstream pipelines (low-level-module-1 & 2, middle-level-module-1 and top-level-module-1
            * Downstream pipeline triggers will be optimized: trigger of middle-level-module-1 and top-level-module-1 will wait for low-level-module-1 & 2 to finish
            * failure on downstream pipelines will not "break the chain" (see JENKINS-55336 ) and a failure of middle-level-module-1 will not prevent top-level-module-1 to be triggered (will be triggered after the failure of "middle-level-module-1" with the following message on "middle-level-module-1":
            {noformat}
            [withMaven] downstreamPipelineTriggerRunListener - Triggering downstream pipeline plugins » pipeline-maven-plugin » jenkins-55336 » jenkins-55336-top-level-module » master#2 due to dependency on io.jenkins.jenkins_55336:jenkins-55336-middle-level-1:jar:2.0.8-SNAPSHOT(2.0.8-20190114.113751-7) ...
            {noformat}

              People

              • Assignee:
                cleclerc Cyrille Le Clerc
                Reporter:
                cleclerc Cyrille Le Clerc
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: