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

Multi-Line Build Log Indication Pattern changes when it shouldn't

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins ver. 1.631
      Build Failure Analyzer 1.13.1

      Steps to reproduce
      1. Create new Failure Cause (goto http://my-jenkins-host/failure-cause-management/new/)
      2. Type some Name e.g "foo"
      3. Type some Description e.g "bar"
      4. Add Multi-Line Build Log Indication
      5. Type some Pattern e.g. "foobar"
      6. Click "Save" button
      7. Edit the recently created Failure Cause
      8. Observe how the Pattern value has changed
      9. Click "Save" button
      10. Edit the recently created Failure Cause
      11. Observe how the Pattern value has changed
      Expected result

      After the first save operation Pattern value should be:

      (?m)(?s)^[\r\n]*?foobar[^\r\n]*?${noformat}
      
      h6. Actual result
      After the first save operation Pattern value is:
      

      (?m)(?s)[\r\n]?(?m)(?s)[\r\n]?foobar[^\r\n]?$[^\r\n]?${noformat}

      After the second save operation Pattern value is

      
      

      (?m)(?s)[\r\n]?(?m)(?s)[\r\n]?(?m)(?s)^[\r\n]?foobar[^\r\n]?$[^\r\n]?$[^\r\n]?${noformat}

      Additional information
      • This if-statement is always true(?)
      • Attached screenshot shows the Pattern value after 3 saves

          [JENKINS-31519] Multi-Line Build Log Indication Pattern changes when it shouldn't

          There are no comments yet on this issue.

            t_westling Tomas Westling
            tesuvant Teemu Suvanto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: