Open dsharma8x8 opened 12 months ago
Add some reference how Jenkins supports yaml format in case of configuration
Add some reference how Jenkins supports yaml format in case of configuration
It should be like this in yaml - Please refer last 3 percentage parameters, which Jenkins should support for Cucumber config.
publishers:
- cucumber-reports:
json-reports-path: ""
file-include-pattern: '**/cucumber-report.json'
failed-steps-number: 1
skipped-steps-number: -1
pending-steps-number: -1
undefined-steps-number: -1
failed-scenarios-number: -1
failed-features-number: -1
build-status: FAILURE
sorting-method: ALPHABETICAL
failed-scenarios-percentage: 100.0
skipped-steps-percentage: 100.0
failed-features-percentage: 100.0
All configurations are developed https://github.com/jenkinsci/cucumber-reports-plugin/blob/529bf7bfd4d058997b0fc959d3255024b6382685/src/main/java/net/masterthought/jenkins/CucumberReportPublisher.java#L269 so I believe percentage can be configured as well
Thanks @damianszczepanik for the update. I will verify it and keep you posted. Thank You!
Jenkins and plugins versions report
Environment
```text Paste the output here ```What Operating System are you using (both controller, and any agents involved in the problem)?
OS Version - MacOS monterey 12.6.8 Jenkins Version - 2.346.3 Cucumber Reports Plugin Version - 5.7.3
Reproduction steps
Expected Results
Cucumber report advance option in job config should show all the parameters defined in yaml file.
Actual Results
Below parameters are not reflecting in Jenkins job config for cucumber report - failed-scenarios-percentage: 100.0 skipped-steps-percentage: 100.0 failed-features-percentage: 100.0 The value is for above properties is showing as default(Zero) instead of 100.0
Anything else?
Jenkins Documentation also don't have the mentioned percentage parameters for Cucumber Report - https://jenkins-job-builder.readthedocs.io/en/latest/publishers.html#publishers.cucumber-reports