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

Jobs whose parent has downstream triggering disabled should be excluded from maven-generated dependency graph

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • 1.509.2

      We have jobs of type (1)
      • Build whenever a SNAPSHOT dependency is build : NO
      • Disable triggering of downstream projects : YES
      and jobs of type (2)
      • Build whenever a SNAPSHOT dependency is build : YES
      • Disable triggering of downstream projects : NO
      So jobs of type (2) should not be included in the Jenkins dependency graph. However, they are!

      Therefore, we suggest the following patch (https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/MavenModule.java), Line 504:

      if(!m.isBuildable()) continue;

      should be instead:

      if(!m.isBuildable() || m.getParent().isDisableTriggerDownstreamProjects()) continue;

      The patch has been tested.

            eichench Christian Eichenberger
            eichench Christian Eichenberger
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: