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

BuildWrapper teardown cannot get result of build for Maven2 projects

      The issue described Hudson-2485 applies to the Maven2 builder as well. Unfortunately, the fix for that particular issue didn't fix the Maven2 builder. But a very similar fix would.

      Please find attached a patch, based on the approach used in the JENKINS-2485 issue, as well as a sample module and hudson config to reproduce the problem.

      When running the config, you should see two maven executions, both of which will fail; after applying the patch the second one (done using the m2-extra-steps plugin, configured to only run for successful builds) will not execute.

      This also addresses a comment on the m2-extra-steps plugin page, which mentions that the extra steps occur regardless of the build outcome.

          [JENKINS-6033] BuildWrapper teardown cannot get result of build for Maven2 projects

          robertdw created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 136126 ] New: JNJira + In-Review [ 187119 ]

            abayer Andrew Bayer
            robertdw robertdw
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: