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

Provide report filename as variable to Groovy parser

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: warnings-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.504 + warning plug-in 4.35
    • Similar Issues:
    • Released As:
      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

          Hide
          drulli Ulli Hafner added a comment -

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

          Show
          drulli Ulli Hafner added a comment - No, the file column is hard coded. All other columns navigate into the details of the selected element.
          Hide
          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 ?

          Show
          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 ?
          Hide
          drulli Ulli Hafner added a comment -

          Please use the Gitter channel for questions.

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

          Show
          drulli Ulli Hafner added a comment - Please use the Gitter channel for questions. You still can parse the Console log, just specify no pattern.
          Hide
          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,

          Show
          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,
          Hide
          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/

          Show
          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/

            People

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

              Dates

              Created:
              Updated:
              Resolved: