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

Text Finder 1.13 no longer supports setting the build result when a match is not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • text-finder-plugin
    • None
    • Jenkins 2.235.1
      text finder 1.13
    • 1.14

      I use text finder to scan the console logs of freestyle jobs that are part of my Jenkins test environment . The changes in text-finder 1.13 seem to have caused all searches for console text to mark the job as having succeeded, even if the text being searched is not in the console log.

      Steps to duplicate the problem:

      1. Define a new freestyle job (I named mine JENKINS-62734-text-finder-always-finds-console-text)
      2. Add a build step "Execute shell" with the command "date;echo Hello JENKINS-62734"
      3. Add a post-build action "Text finder" that succeeds if found and additionally searches console output for
        ^Hello JENKINS-62734$
        
      1. Run the job and confirm with text-finder 1.12 and 1.13 that the job succeeds
      2. Change the searched text to
        ^Goodbye JENKINS-62734$
        
      1. Run the job and confirm with text-finder 1.12 that the job fails as expected
      2. Run the job and confirm with text-finder 1.13 that the job succeeds unexpectedly

      It also appears that there are more states available for the text-finder 1.12 plugin than are available in text-finder 1.13.

      The text-finder 1.12 plugin states seem to generate the following job status results (with question marks at places where I haven't yet gathered the data):

      Succeed if found Unstable if found Not Built if found Text in console log Text not in console log
      False False False Failed Succeed
      False False True Not Built Succeed
      False True False Unstable Succeed
      False True True Not Built Succeed
      True False False Succeed Fail
      True False True Succeed Not Built
      True True False Succeed Unstable
      True True True Succeed Not Built

            basil Basil Crow
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: