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

Text finder plugin cannot change test result from Failure to UNSTABLE

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: text-finder-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 1.578
      TextFinder plugin: 1.10
    • Similar Issues:

      Description

      Text Finder is configured to "search the console output" and set build to "unstable if found". The test script returns a non-zero value, and the plugin is able to find the string, however, the test run is still marked as failure.

      [X] Also search the console output
      Regular expression: "git call failed"
      [ ] Succeed if found
      [X] Unstable if found

      The console log indicates the plugin does find the string, but the build is still failed, instead of marked as unstable.

        Attachments

          Issue Links

            Activity

            Hide
            misery A. Klitzing added a comment -

            Jenkins does not allow this.

            http://javadoc.jenkins-ci.org/hudson/model/Run.html#setResult%28hudson.model.Result%29

            Sets the getResult() of this build. Has no effect when the result is already set and worse than the proposed result.

            https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/Run.java#L465

            Show
            misery A. Klitzing added a comment - Jenkins does not allow this. http://javadoc.jenkins-ci.org/hudson/model/Run.html#setResult%28hudson.model.Result%29 Sets the getResult() of this build. Has no effect when the result is already set and worse than the proposed result. https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/Run.java#L465

              People

              • Assignee:
                drlewis drlewis
                Reporter:
                garyduan Gary Duan
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: