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

Don't throw exception when no reports available

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: pitmutation-plugin
    • Labels:
      None
    • Environment:
      pitmutation 1.0.16
    • Similar Issues:

      Description

      The pitpublisher in pipeline throws an exception when no reports are found. This is not consistent to other publisher plugins which only write a warning to the log files.

      This should be changed to emit a warning to log instead of throwing an exception.

      My code:

         step([$class              : 'PitPublisher',
                        mutationStatsFile   : '**/target/pit-reports/mutations.xml',
                        killRatioMustImprove: false])
      

        Attachments

          Activity

          Hide
          gigasproule Benjamin Sproule added a comment -

          Michael Düsterhus do you have any examples of other publisher plugins doing this? If I'm going to make it consistent, I would like to be able to compare.

          Show
          gigasproule Benjamin Sproule added a comment - Michael Düsterhus do you have any examples of other publisher plugins doing this? If I'm going to make it consistent, I would like to be able to compare.
          Hide
          danielbeck Daniel Beck added a comment -

          Resolved towards 2.104.

          Show
          danielbeck Daniel Beck added a comment - Resolved towards 2.104.

            People

            Assignee:
            gigasproule Benjamin Sproule
            Reporter:
            reitzmichnicht Michael Düsterhus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: