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

          iostrym iostrym created issue -
          drulli Ulli Hafner made changes -
          Field Original Value New Value
          Summary is it possible to display the filename of the file being parsed ? Provide report filename as variable to Groovy parser
          iostrym iostrym made changes -
          Priority Minor [ 4 ] Critical [ 2 ]
          drulli Ulli Hafner made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          drulli Ulli Hafner made changes -
          Released As 5.0.0-beta3
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: