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

Fix flexmojos testing results reporting when running a maven2 build for flex projects

    Details

    • Type: Patch
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core, maven-plugin
    • Labels:
      None
    • Environment:
      maven2 + flexmojos > 3.5.0 + flex unit testing libraries

      Description

      When running flex related test cases in a maven2 build hudson will not retrieve the test results because it will only listen to surefire:test mojo. Flexmojos will behave similarly with surefire:test (put the results to target/surefire-results folder in the proper format) but Hudson will not pick the results after a build.

      One fix is to unconditionally run surefire:test on the project but in this way when the build fails the surefire:test mojos will not be run and the tests will not be picked up.

      This patch fixed the list of mojos observed by hudson for a maven build to treat flexmojos-maven-plugin:test-run mojo the same way it will treat a surefire:test mojo execution.

      The behaviour is the expected one:
      on a successfull build the test results are picked
      on a failed build the test results are picked too.

        Issue Links

          Activity

          Hide
          mtoader mtoader added a comment -

          I'm glad it works.

          pinning is the way hudson will allow you to override "core" plugins.

          Show
          mtoader mtoader added a comment - I'm glad it works. pinning is the way hudson will allow you to override "core" plugins.
          Hide
          neiltingley neiltingley added a comment -

          Is this fix being released anytime soon. It works for me.

          Show
          neiltingley neiltingley added a comment - Is this fix being released anytime soon. It works for me.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/34029
          Log:
          [FIXED JENKINS-6893] integrated toward 1.373.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java trunk/www/changelog.html http://jenkins-ci.org/commit/34029 Log: [FIXED JENKINS-6893] integrated toward 1.373.
          Hide
          dogfood dogfood added a comment -

          Integrated in hudson_main_trunk #203
          [FIXED JENKINS-6893] integrated toward 1.373.

          kohsuke :
          Files :

          • /trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
          • /trunk/www/changelog.html
          Show
          dogfood dogfood added a comment - Integrated in hudson_main_trunk #203 [FIXED JENKINS-6893] integrated toward 1.373. kohsuke : Files : /trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java /trunk/www/changelog.html
          Hide
          neiltingley neiltingley added a comment -

          Thanks guys.

          Show
          neiltingley neiltingley added a comment - Thanks guys.

            People

            • Assignee:
              mtoader mtoader
              Reporter:
              mtoader mtoader
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: