Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
Description
We use "jenkins-cli.jar set-build-description" command for integration with external CI systems - they record build number, do their processing, then post status back to jenkins by updating build description. Sometimes, recorded build number no longer exists (e.g. was expired), and in thsi case, set-build-description command fails with NullPointerException (and exist code of 255). Of course, NPE isn't selective enough to differentiate "build doesn't exist" (warning-like condition) from more serious error which may require closer attention.
It would be nice if set-build-description checked build existence, and exited with specific error message and specific exit code for easy scripting.
Attachments
Issue Links
- is blocking
-
JENKINS-34055 Improve test coverage of CLI command 'set-build-description'
-
- Resolved
-
pajasoft You may be interested in this one.