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

Allow Text Finder plugin to carry out multiple searches

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: text-finder-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:
    • Released As:
      1.13

      Description

      Currently, the text-finder plugin enables the administrator to specify a
      location to search (file patterns and/or console output), a regex, and a result
      (which can be either unstable or failed).

      A useful and natural enhancement would be to allow multiple search criteria to
      be specified. Each search would consist of:
      (a) where to search - files and/or console; OR previous search's specification
      (b) regex to search for - OR previous search's specification
      (c) what to do if the regex is found - unstable/fail/success

      The searches should be carried out in the order listed, and halt at the first
      search for which the regex passes, marking the build unstable/fail/success as
      specified.

      Of course, there can be some optimisations - if two searches specify the same
      "where to search", it can be done in one pass.

        Attachments

          Issue Links

            Activity

            Hide
            tcb_xy Tim-Christian Bloss added a comment -

            This would also be very helpfull for our complex automated remote deployment tasks.

            Should be possible to trigger different behaviour based on console output:

            • deployment successfull but application not working -> unstable, developers have to fix this
            • deployment failed -> fail the build, admins have to track down the issue
            Show
            tcb_xy Tim-Christian Bloss added a comment - This would also be very helpfull for our complex automated remote deployment tasks. Should be possible to trigger different behaviour based on console output: deployment successfull but application not working -> unstable, developers have to fix this deployment failed -> fail the build, admins have to track down the issue
            Hide
            dlaugt Daniel Laügt added a comment -

            With Flexible Publish plugin, several text-finder plugins can be added to the project. For example with this solution, you can have a regular expression for marking the build as failed and a regular expression for marking the build as unstable.

            Show
            dlaugt Daniel Laügt added a comment - With Flexible Publish plugin, several text-finder plugins can be added to the project. For example with this solution, you can have a regular expression for marking the build as failed and a regular expression for marking the build as unstable.
            Hide
            mwebber Matthew Webber added a comment -

            >> With Flexible Publish plugin, several text-finder plugins can be added to the project
            That would presumably work (I have not tested it), but requires the output to be read multiple times. It also doesn't support "stop processing patterns after a match is found".

            Show
            mwebber Matthew Webber added a comment - >> With Flexible Publish plugin, several text-finder plugins can be added to the project That would presumably work (I have not tested it), but requires the output to be read multiple times. It also doesn't support "stop processing patterns after a match is found".
            Hide
            basil Basil Crow added a comment -
            Show
            basil Basil Crow added a comment - Fixed in jenkinsci/text-finder-plugin#54 .
            Hide
            basil Basil Crow added a comment -

            Released in Text Finder 1.13.

            Show
            basil Basil Crow added a comment - Released in Text Finder 1.13 .

              People

              Assignee:
              basil Basil Crow
              Reporter:
              mwebber Matthew Webber
              Votes:
              10 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: