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

Provide report filename as variable to Groovy parser

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Critical
    • Resolution: Fixed
    • warnings-plugin
    • None
    • jenkins 1.504 + warning plug-in 4.35
    • 5.0.0-beta3

    Description

      When using Warning plug-in for parsing several files like *.rpt I would like to be able to display the name of the file being scanned as a category or something else.

      is is possible to catch the filename of the file being scanned in the groovy script of the plugin configuration ?

      for instance :

      test1.rpt contains : "error 1 warning 3"

      test2.rpt contains : "error 10 warning 32"

      test3.rpt contains : "error 132 warning 33"

      And I would like to be able in the parser to catch these lines but including the filename that contains the line. is it something possible ?

      I'm in the case where I don't scan the console but several files.

      Attachments

        Activity

          drulli Ulli Hafner added a comment -

          The current version is still in beta and available at the official but experimental update center: https://updates.jenkins.io/experimental/

          drulli Ulli Hafner added a comment - The current version is still in beta and available at the official but experimental update center: https://updates.jenkins.io/experimental/
          iostrym iostrym added a comment -

          Hello,

          Could you please tell me if 5.0 beta version I tried is now available in the official jenkins plugin store ? Is it compatible with the one I installed ?

          sorry, I'm waiting for my company autorize us to use the gitter channel

          best regards,

          iostrym iostrym added a comment - Hello, Could you please tell me if 5.0 beta version I tried is now available in the official jenkins plugin store ? Is it compatible with the one I installed ? sorry, I'm waiting for my company autorize us to use the gitter channel best regards,
          drulli Ulli Hafner added a comment -

          Please use the Gitter channel for questions.

          You still can parse the Console log, just specify no pattern.

          drulli Ulli Hafner added a comment - Please use the Gitter channel for questions. You still can parse the Console log, just specify no pattern.
          iostrym iostrym added a comment -

          hello, is it normal that using new plugin, I don't find anymore the choice to parse directly the console output instead of a specific report file ?

          iostrym iostrym added a comment - hello, is it normal that using new plugin, I don't find anymore the choice to parse directly the console output instead of a specific report file ?
          drulli Ulli Hafner added a comment -

          No, the file column is hard coded. All other columns navigate into the details of the selected element.

          drulli Ulli Hafner added a comment - No, the file column is hard coded. All other columns navigate into the details of the selected element.

          People

            drulli Ulli Hafner
            iostrym iostrym
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: