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

IllegalStateException from MavenProject.getParent can break MavenFingerprinter.recordParents

    Details

    • Similar Issues:

      Description

      If custom settings.xml are used for a job in such a way that parent POMs are not accessible without considering the full environment of model building (details TBD), it can happen that the Maven build itself succeeds yet MavenFingerprinter.recordParents fails to find parent POMs and so aborts the build. The root problem is the use of MavenProject.getParent, which is very problematic and in fact can throw an undocumented exception as MNG-5075 notes.

      Any such exception should be caught, perhaps logged, and fingerprinting should proceed.

      Further, the model should be computed in such a way that the parent can be resolved to begin with. This may mean dropping usages of getParent.

        Attachments

          Activity

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: