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

Unstable main build leads to post steps being executed even if configured not to

    Details

    • Similar Issues:

      Description

      When a build "fails" due to test failures, and post steps are configured with the option "Run only if build succeeds", these post steps are still executed.

      (Jenkins 1.467)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          maven-plugin/src/main/java/hudson/maven/Maven3Builder.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
          maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
          maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java
          test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java
          http://jenkins-ci.org/commit/jenkins/5f4f68be0081cd9b9554c7d0ce8529c573764056
          Log:
          [FIXED JENKINS-14102] mark maven build with test failures as unstable

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: maven-plugin/src/main/java/hudson/maven/Maven3Builder.java maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java http://jenkins-ci.org/commit/jenkins/5f4f68be0081cd9b9554c7d0ce8529c573764056 Log: [FIXED JENKINS-14102] mark maven build with test failures as unstable
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          maven-plugin/src/main/java/hudson/maven/Maven2Builder.java
          maven-plugin/src/main/java/hudson/maven/Maven3Builder.java
          maven-plugin/src/main/java/hudson/maven/MavenBuild.java
          maven-plugin/src/main/java/hudson/maven/MavenBuilder.java
          maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java
          test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java
          http://jenkins-ci.org/commit/jenkins/193173f5597ca02a5ce73a2e34343f77493025dc
          Log:
          [FIXED JENKINS-14102] fix also for maven2 and add test cases

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: maven-plugin/src/main/java/hudson/maven/Maven2Builder.java maven-plugin/src/main/java/hudson/maven/Maven3Builder.java maven-plugin/src/main/java/hudson/maven/MavenBuild.java maven-plugin/src/main/java/hudson/maven/MavenBuilder.java maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java http://jenkins-ci.org/commit/jenkins/193173f5597ca02a5ce73a2e34343f77493025dc Log: [FIXED JENKINS-14102] fix also for maven2 and add test cases
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #2156
          [FIXED JENKINS-14102] mark maven build with test failures as unstable (Revision 5f4f68be0081cd9b9554c7d0ce8529c573764056)
          [FIXED JENKINS-14102] fix also for maven2 and add test cases (Revision 193173f5597ca02a5ce73a2e34343f77493025dc)

          Result = SUCCESS
          imod : 5f4f68be0081cd9b9554c7d0ce8529c573764056
          Files :

          • maven-plugin/src/main/java/hudson/maven/Maven3Builder.java
          • maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java
          • test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java
          • maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
          • maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java

          imod : 193173f5597ca02a5ce73a2e34343f77493025dc
          Files :

          • test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java
          • maven-plugin/src/main/java/hudson/maven/Maven3Builder.java
          • maven-plugin/src/main/java/hudson/maven/MavenBuild.java
          • maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java
          • maven-plugin/src/main/java/hudson/maven/MavenBuilder.java
          • maven-plugin/src/main/java/hudson/maven/Maven2Builder.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2156 [FIXED JENKINS-14102] mark maven build with test failures as unstable (Revision 5f4f68be0081cd9b9554c7d0ce8529c573764056) [FIXED JENKINS-14102] fix also for maven2 and add test cases (Revision 193173f5597ca02a5ce73a2e34343f77493025dc) Result = SUCCESS imod : 5f4f68be0081cd9b9554c7d0ce8529c573764056 Files : maven-plugin/src/main/java/hudson/maven/Maven3Builder.java maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java imod : 193173f5597ca02a5ce73a2e34343f77493025dc Files : test/src/test/java/hudson/maven/MavenBuildSurefireFailedTest.java maven-plugin/src/main/java/hudson/maven/Maven3Builder.java maven-plugin/src/main/java/hudson/maven/MavenBuild.java maven-plugin/src/main/java/hudson/maven/reporters/TestFailureDetector.java maven-plugin/src/main/java/hudson/maven/MavenBuilder.java maven-plugin/src/main/java/hudson/maven/Maven2Builder.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/hudson/maven/Maven3Builder.java
          src/main/java/hudson/maven/MavenModuleSet.java
          src/main/java/hudson/maven/reporters/SurefireArchiver.java
          src/main/java/hudson/maven/reporters/TestFailureDetector.java
          http://jenkins-ci.org/commit/maven-plugin/adf9fc658df6e18a0d0648fea011bbe752094558
          Log:
          [FIXED JENKINS-14102] mark maven build with test failures as unstable

          Originally-Committed-As: 5f4f68be0081cd9b9554c7d0ce8529c573764056

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/hudson/maven/Maven3Builder.java src/main/java/hudson/maven/MavenModuleSet.java src/main/java/hudson/maven/reporters/SurefireArchiver.java src/main/java/hudson/maven/reporters/TestFailureDetector.java http://jenkins-ci.org/commit/maven-plugin/adf9fc658df6e18a0d0648fea011bbe752094558 Log: [FIXED JENKINS-14102] mark maven build with test failures as unstable Originally-Committed-As: 5f4f68be0081cd9b9554c7d0ce8529c573764056
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/hudson/maven/Maven2Builder.java
          src/main/java/hudson/maven/Maven3Builder.java
          src/main/java/hudson/maven/MavenBuild.java
          src/main/java/hudson/maven/MavenBuilder.java
          src/main/java/hudson/maven/reporters/TestFailureDetector.java
          http://jenkins-ci.org/commit/maven-plugin/bb10503a662676b8e72991f63d68859004ea9587
          Log:
          [FIXED JENKINS-14102] fix also for maven2 and add test cases

          Originally-Committed-As: 193173f5597ca02a5ce73a2e34343f77493025dc

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/hudson/maven/Maven2Builder.java src/main/java/hudson/maven/Maven3Builder.java src/main/java/hudson/maven/MavenBuild.java src/main/java/hudson/maven/MavenBuilder.java src/main/java/hudson/maven/reporters/TestFailureDetector.java http://jenkins-ci.org/commit/maven-plugin/bb10503a662676b8e72991f63d68859004ea9587 Log: [FIXED JENKINS-14102] fix also for maven2 and add test cases Originally-Committed-As: 193173f5597ca02a5ce73a2e34343f77493025dc

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              tdemande Thomas Demande
            • Votes:
              7 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: