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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • junit-plugin, pipeline
    • None
    • Jenkins 2.7.3, Pipeline 2.3

      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'
      

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

              Created:
              Updated:
              Resolved: