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

Maven Jobs should include their parent POM's fingerprint to correctly link projects

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      Given two Maven2 projects:

      Project A (POM only)
      Project B (Jar), has A as parent (build when SNAPSHOT-dependencies are built)

      Now, when A is built (#1), a build of B (#1) is correctly triggered. A shows a DS dependency to B, B an US dependency to A.

      However, when viewing build #1 of A, it shows a downstream dependency to B without a specific build number (none).

      When comparing both projects via "project dependecies", no dependencies are shown, which is plainly wrong.

      A small change to MavenFingerprinter should do the trick.

          [JENKINS-8383] Maven Jobs should include their parent POM's fingerprint to correctly link projects

          Stephan Pauxberger created issue -

          kutzi added a comment -

          If you've already identified the necessary change to MavenFingerprinter, could you please do it on Github and open a pull request?

          kutzi added a comment - If you've already identified the necessary change to MavenFingerprinter, could you please do it on Github and open a pull request?

          kutzi added a comment -

          In my Jenkins instance it just works fine

          kutzi added a comment - In my Jenkins instance it just works fine
          kutzi made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Confirm:

          create a Maven Project building the parent
          create a different Maven Project using the parent artifact as parent
          build the parent project
          build the child project

          parent project has parent.pom as fingerprint
          child project has child.pom as fingerprint BUT NOT parent.pom

          parent project has a downstream dependency to child (correct)

          no build parent again, child should be built as well.

          compare both projects using "project dependencies" -> no common artifacts.

          Stephan Pauxberger added a comment - Confirm: create a Maven Project building the parent create a different Maven Project using the parent artifact as parent build the parent project build the child project parent project has parent.pom as fingerprint child project has child.pom as fingerprint BUT NOT parent.pom parent project has a downstream dependency to child (correct) no build parent again, child should be built as well. compare both projects using "project dependencies" -> no common artifacts.
          Stephan Pauxberger made changes -
          Assignee New: Stephan Pauxberger [ paux ]
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Sorry for the delay, I have openend a pull request.

          Stephan Pauxberger added a comment - Sorry for the delay, I have openend a pull request.
          kutzi made changes -
          Assignee Original: Stephan Pauxberger [ paux ] New: kutzi [ kutzi ]

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java
          http://jenkins-ci.org/commit/jenkins/9015b0bd0a40602eac35c55abc7c3829848752ce
          Log:
          Merge pull request #225 from pauxus/master

          JENKINS-8383 Record fingerprints for parent POMs, too

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/jenkins/9015b0bd0a40602eac35c55abc7c3829848752ce Log: Merge pull request #225 from pauxus/master JENKINS-8383 Record fingerprints for parent POMs, too

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java
          http://jenkins-ci.org/commit/jenkins/38e5d115c9beece378082542c55ddbc5013caf57
          Log:
          minor follow up and changelog for JENKINS-8383

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/jenkins/38e5d115c9beece378082542c55ddbc5013caf57 Log: minor follow up and changelog for JENKINS-8383

            paux Stephan Pauxberger
            paux Stephan Pauxberger
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: