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

BuildWrapper teardown cannot get result of build for Maven2 projects

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          robertdw robertdw added a comment -

          Was wondering if you needed any more details on this.

          Show
          robertdw robertdw added a comment - Was wondering if you needed any more details on this.
          Hide
          robertdw robertdw added a comment -

          Is there any particular reason this hasn't been applied yet?

          By now, the supplied patch is stale - if you want an updated one, please let me know.

          Show
          robertdw robertdw added a comment - Is there any particular reason this hasn't been applied yet? By now, the supplied patch is stale - if you want an updated one, please let me know.
          Hide
          dogfood dogfood added a comment -

          Integrated in hudson_main_trunk #276
          [FIXED JENKINS-6033] BuildWrapper teardowns couldn't get result of Maven2 project builds

          abayer :
          Files :

          • /trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          Show
          dogfood dogfood added a comment - Integrated in hudson_main_trunk #276 [FIXED JENKINS-6033] BuildWrapper teardowns couldn't get result of Maven2 project builds abayer : Files : /trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          http://jenkins-ci.org/commit/34980
          Log:
          [FIXED JENKINS-6033] BuildWrapper teardowns couldn't get result of Maven2 project builds

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java http://jenkins-ci.org/commit/34980 Log: [FIXED JENKINS-6033] BuildWrapper teardowns couldn't get result of Maven2 project builds
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : abayer
          Path:
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/34981
          Log:
          Fixed JENKINS-6033

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/www/changelog.html http://jenkins-ci.org/commit/34981 Log: Fixed JENKINS-6033

            People

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

              Dates

              • Created:
                Updated:
                Resolved: