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

Specifying decimal numbers for JUnit health factor in Pipeline snippets results in invalid code

      Specifying 0.1 in Health report amplification factor will result in bad groovy:
      step([$class: 'JUnitResultArchiver', healthScaleFactor: <object of type java.lang.Double>, testResults: '**/target/surefire-reports/*.xml'])

      This'll happen with 20.0, 10.5, whatever - any decimal ends up showing up like this.

          [JENKINS-31967] Specifying decimal numbers for JUnit health factor in Pipeline snippets results in invalid code

          Andrew Bayer created issue -

          Jesse Glick added a comment -

          Means DescribableHelper and/or Snippetizer are not yet handling all primitive types. Should be an easy fix.

          Jesse Glick added a comment - Means DescribableHelper and/or Snippetizer are not yet handling all primitive types. Should be an easy fix.
          Jesse Glick made changes -
          Epic Link New: JENKINS-35393 [ 171186 ]
          Jesse Glick made changes -
          Component/s New: structs-plugin [ 21442 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 167440 ] New: JNJira + In-Review [ 182732 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: pipeline [ 21692 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-38004 [ JENKINS-38004 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-40363 [ JENKINS-40363 ]

            artem_fedorov Artem Fedorov
            abayer Andrew Bayer
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: