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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            abayer Andrew Bayer created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Epic Link JENKINS-35393 [ 171186 ]
            jglick Jesse Glick made changes -
            Component/s structs-plugin [ 21442 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 167440 ] JNJira + In-Review [ 182732 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-38004 [ JENKINS-38004 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-40363 [ JENKINS-40363 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-40508 [ JENKINS-40508 ]
            oleg_nenashev Oleg Nenashev made changes -
            Summary Specifying decimal numbers for JUnit health factor in Workflow snippets results in invalid code Specifying decimal numbers for JUnit health factor in Pipeline snippets results in invalid code
            oleg_nenashev Oleg Nenashev made changes -
            Labels newbie-friendly
            jglick Jesse Glick made changes -
            Remote Link This issue links to "structs PR 16 (Web Link)" [ 16911 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ] Artem Fedorov [ artem_fedorov ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-cps PR 116 (Web Link)" [ 16912 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: