5.1, . API- "" I.e., < : 9000/api/resources? resource = projectname & metrics = quality_gate_details > , (, /, ..) . 'jq' json- bash script ( ), / , ..
, , . , jenkins-cli.jar. "java -jar jenkins-cli.jar set-build-result pass/fail/unstable"
Please note that manually setting the assembly status in this way must be done during assembly. You should use it at the end of the build step, after determining whether it should be set as unsuccessful or unstable.
I hope this helps. Good luck.
source
share