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

junit snippet generator with "Health report" Double doesn't generate proper Groovy output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: junit-plugin, pipeline
    • Labels:
      None
    • Environment:
      Jenkins 2.7.3, Pipeline 2.3
    • Similar Issues:

      Description

      Reproduction steps are pretty easy:

      1. Open snippet generator
      2. Choose junit step
      3. Add a "Health report amplification factor" different than the default of 1.0
      4. Get invalid Groovy

      Expected:

      junit healthScaleFactor: 3.0, testResults: 'build/test-reports/*.xml'
      

      Received

      junit healthScaleFactor: <object of type java.lang.Double>, testResults: 'build/test-reports/*.xml'
      

        Attachments

          Issue Links

            Activity

            Hide
            busches Scott Busche added a comment -

            Additionally the value does not appear to work. Setting it to 100.0 does not fail the build when there is a failing test case for instance. If this is unrelated, I can open a different issue.

            Show
            busches Scott Busche added a comment - Additionally the value does not appear to work. Setting it to 100.0 does not fail the build when there is a failing test case for instance. If this is unrelated, I can open a different issue.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                rtyler R. Tyler Croy
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: