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

Want Text Finder to be able to ignore missing files

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • text-finder-plugin
    • None

      I configure the Text-finder plugin to search a specific filename.

      If the file does not exist, the following message is written to the log:

      Hudson Text Finder: File set 'post_build_status_marker.txt' is empty
      

      and the build is marked as unstable (I have "Unstable if found" checked, otherwise I presume the build would be marked as fail).

      I think this behavior is wrong. If there are no files to search, then the regular expression is simply not matched.

      I would suggest the following possible solutions (in descending order of preference):
      (1) change the behavior so that if no files match the file list, this is not an error
      OR (2) provide a checkbox so that the user can say whether or not "no matching files" is an error
      OR (3) at a minimum, update the documentation (and help text on the configure page) to specify the existing behavior

          [JENKINS-7548] Want Text Finder to be able to ignore missing files

          Naresh G added a comment -

          any update on the above issue... i want to parse a text file for a pattern using text finder.

          Getting the below issue even-though there is the file in the location it is giving me the following output

          Jenkins Text Finder: File set 'test-automation-$Tags\Stats.txt' is empty
          Build step 'Jenkins Text Finder' changed [*******] result to UNSTABLE

          Naresh G added a comment - any update on the above issue... i want to parse a text file for a pattern using text finder. Getting the below issue even-though there is the file in the location it is giving me the following output Jenkins Text Finder: File set 'test-automation-$Tags\Stats.txt' is empty Build step 'Jenkins Text Finder' changed [*******] result to UNSTABLE

          Basil Crow added a comment -

          Hey nareshg4, I would love to see this bug get fixed. Pull requests are welcome!

          Basil Crow added a comment - Hey nareshg4 , I would love to see this bug get fixed. Pull requests are welcome!

            Unassigned Unassigned
            mwebber Matthew Webber
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: