How to configure health options of the warnings-ng plugin?
The warnings-ng plugin provides several options to monitor the health status of a job. However, it is unclear how to configure those in recipes. Particularly, I would like to configure the following settings:
- healthy/text()
- unhealthy/text()
- minimumSeverity/name/text()
- qualityGates (the only way to yield a
FAILEDorUNSTABLEon too many issues)
@scymtym, did you made some progress on this already?
I made a branch which looks like it could work. You can try the binary from https://github.com/RDTK/generator/actions/runs/1416420320 (the other pipelines seem to be broken due to either end-of-life of the runner configuration or the recent libSSL woes).
build-generator version -c 1 has a brief description.
Thanks for preparing this branch, @scymtym. Sorry, that I only found time to test this now. Here are my observations:
- [x] Defining the
healthy-threshold,unhealthy-threshold, andhealth-minimum-severityworks as expected. - [ ] I couldn't figure out, how to define a quality gate. The doc doesn't mention this.
- [ ] One quality gate is created by default, although the list of gates should be empty I think.
- [ ] This created quality gate has a threshold of zero, which is forbidden.
- [ ] The cmake warnings parser isn't registered anymore. Maybe, because the name changed from
CmaketoCMake?