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

IllegalStateException from MavenProject.getParent can break MavenFingerprinter.recordParents

    XMLWordPrintable

    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

          jglick Jesse Glick created issue -
          jglick Jesse Glick made changes -
          Field Original Value New Value
          Labels exception exception lts-candidate
          jglick Jesse Glick made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          olivergondza Oliver Gondža made changes -
          Labels exception lts-candidate exception lts-1.509.3-fixed
          olivergondza Oliver Gondža made changes -
          Labels exception lts-1.509.3-fixed 1.509.3-fixed exception
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 148955 ] JNJira + In-Review [ 192958 ]

            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: