-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins 2.7.3, Pipeline 2.3
Reproduction steps are pretty easy:
- Open snippet generator
- Choose junit step
- Add a "Health report amplification factor" different than the default of 1.0
- 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'
- duplicates
-
JENKINS-31967 Specifying decimal numbers for JUnit health factor in Pipeline snippets results in invalid code
-
- Resolved
-
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.