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

Jenkins kicks off the wrong downstream builds for Maven

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Given: Jenkins has different build jobs with different versions of the same artifacts and group ids. Example jarProj-1.1 and jarProj-1.2, and dependent builds warProj-1.1 and warProj-1.2.

      Problem: When Jenkins determines downstream build jobs, it is choosing ALL versions of old and current jobs. So in the example, jarProj-1.2 kicks off BOTH warProj-1.2 (correct) AND warProj1.1 (incorrect). Also, jarProj-1.1 kicks off no builds at all (incorrect), when instead we expect it to kick off warProj-1.1.

      Seems related to JENKINS-15295. We have the same fingerprint errors.

      Also, JENKINS-12735 made a change to cover version ranges in Maven, and that seems like it would break the downstream builds if a bug was introduced there.

        Attachments

          Issue Links

            Activity

            Hide
            riemers Erik Riemers added a comment -

            Seems to have done it on our end. Had no complaints either.

            Show
            riemers Erik Riemers added a comment - Seems to have done it on our end. Had no complaints either.
            Hide
            jaymeyer Jay Meyer added a comment -

            Fixed in 1.492.

            I have not verified this myself, but I trust the word of others who have verified this.
            I have scheduled to try this on my builds the week of Dec-10. If it fails again, I will re-open this issue with the details of the failure.

            Show
            jaymeyer Jay Meyer added a comment - Fixed in 1.492. I have not verified this myself, but I trust the word of others who have verified this. I have scheduled to try this on my builds the week of Dec-10. If it fails again, I will re-open this issue with the details of the failure.
            Hide
            jaymeyer Jay Meyer added a comment -

            I have verified this on my system today, it works.
            using version 1.494.

            Thanks for the fix, much appreciated.

            Show
            jaymeyer Jay Meyer added a comment - I have verified this on my system today, it works. using version 1.494. Thanks for the fix, much appreciated.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: alexkoon
            Path:
            src/main/java/hudson/maven/ModuleDependency.java
            src/test/java/hudson/maven/MavenModuleTest.java
            http://jenkins-ci.org/commit/maven-plugin/1331c06d56902cff73afd66eb48cd50c06c481a2
            Log:
            JENKINS-15367 Fix for downstream dependencies when we have a specified version (not a version range).

            Originally-Committed-As: 4043905580df5bf22cde0eaf3dec103abdc88017

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alexkoon Path: src/main/java/hudson/maven/ModuleDependency.java src/test/java/hudson/maven/MavenModuleTest.java http://jenkins-ci.org/commit/maven-plugin/1331c06d56902cff73afd66eb48cd50c06c481a2 Log: JENKINS-15367 Fix for downstream dependencies when we have a specified version (not a version range). Originally-Committed-As: 4043905580df5bf22cde0eaf3dec103abdc88017
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            src/main/java/hudson/maven/ModuleDependency.java
            src/test/java/hudson/maven/MavenModuleTest.java
            http://jenkins-ci.org/commit/maven-plugin/056f50426525563299f39f0688179f3c2aef2a66
            Log:
            Merge pull request #609 from alexkoon/master

            JENKINS-15367 Fix Maven downstream resolution when declared as a specific version.
            Originally-Committed-As: 2c469b37b563c5d6ca70ac7841897e1a20083130

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: src/main/java/hudson/maven/ModuleDependency.java src/test/java/hudson/maven/MavenModuleTest.java http://jenkins-ci.org/commit/maven-plugin/056f50426525563299f39f0688179f3c2aef2a66 Log: Merge pull request #609 from alexkoon/master JENKINS-15367 Fix Maven downstream resolution when declared as a specific version. Originally-Committed-As: 2c469b37b563c5d6ca70ac7841897e1a20083130

              People

              Assignee:
              olamy Olivier Lamy
              Reporter:
              jaymeyer Jay Meyer
              Votes:
              35 Vote for this issue
              Watchers:
              42 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: