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

Allow text-finder plugin to carry out multiple searches.

    Details

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

      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

          Activity

          Hide
          babajide Babajide Agbebiyi added a comment -

          Any work in progress on this?
          How can I help?
          Regards
          PB

          Show
          babajide Babajide Agbebiyi added a comment - Any work in progress on this? How can I help? Regards PB
          Hide
          babajide Babajide Agbebiyi added a comment -

          Please assist.
          Regards
          PB

          Show
          babajide Babajide Agbebiyi added a comment - Please assist. Regards PB
          Hide
          gommo gommo added a comment -

          I have a forked version that does this. I will put together a pull request

          https://github.com/gommo/text-finder-plugin

          Show
          gommo gommo added a comment - I have a forked version that does this. I will put together a pull request https://github.com/gommo/text-finder-plugin
          Hide
          dridi Dridi Boukelmoune added a comment -

          The pull request is a year old, will it be reviewed and merged ?
          This is essential since post build actions have a 0..1 cardinality.

          Show
          dridi Dridi Boukelmoune added a comment - The pull request is a year old, will it be reviewed and merged ? This is essential since post build actions have a 0..1 cardinality.
          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".

            People

            • Assignee:
              kktest3 Kohsuke Kawaguchi
              Reporter:
              mwebber Matthew Webber
            • Votes:
              10 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: