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

excludeMessage does not work with single quotes

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • analysis-model
    • None
    • Version 5.0.1

      For an output like this

      [WARNING] 'tools.jar' was not found, kapt may work unreliably
      

      the following exclude Filter does not work
      excludeMessage("'tools.jar' was not found, kapt may work unreliably")

      but this works:
      excludeMessage('was not found, kapt may work unreliably'),

      So there is a problem with single quotes inside filter messages

          [JENKINS-57448] excludeMessage does not work with single quotes

          Michael Düsterhus created issue -
          Michael Düsterhus made changes -
          Description Original: For an output like this the following exclude Filter does not work
          {noformat}
          [WARNING] 'tools.jar' was not found, kapt may work unreliably
          {noformat}

          excludeMessage("'tools.jar' was not found, kapt may work unreliably")
          but this works:
          excludeMessage('was not found, kapt may work unreliably'),

          So there is a problem with single quotes inside filter messages
          New: For an output like this
          {noformat}
          [WARNING] 'tools.jar' was not found, kapt may work unreliably
          {noformat}

          the following exclude Filter does not work
          excludeMessage("'tools.jar' was not found, kapt may work unreliably")

          but this works:
          excludeMessage('was not found, kapt may work unreliably'),

          So there is a problem with single quotes inside filter messages

          Ulli Hafner added a comment -

          This probably looks like a problem with the Groovy build script pipeline (" vs. ').

          Ulli Hafner added a comment - This probably looks like a problem with the Groovy build script pipeline (" vs. ').

          Ulli Hafner added a comment - - edited

          Added a test, see commit/ad24232f.

          Ulli Hafner added a comment - - edited Added a test, see commit/ad24232f .
          Ulli Hafner made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            drulli Ulli Hafner
            reitzmichnicht Michael Düsterhus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: