-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: promoted-builds-plugin
-
None
-
Environment:Jenkins: 2.492.3
OS: Linux - 6.1.54-talos
Java: 17.0.14 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
promoted builds plugin - Version992.va_00888f21b_74
About 2 years ago, prior to some Jenkins update, data under API contained promotion target for each promotion item. I was using below URL to get a list of validator builds that contain some desired promotion:
[<JOB_URL>/promotion/process/<PROMOTION_NAME>///api/json?tree=builds[number,timestamp,target[url]]] , as it returned data in below format:
"builds": [ Â Â { Â Â Â Â "number": 43954, Â Â Â Â "timestamp": 1763381343488, Â Â Â Â "target": { Â Â Â Â Â Â "url": "<JENKINS_URL>/job/<JOB_NAME>/127165/" Â Â Â Â } Â Â }, Â Â { Â Â Â Â "number": 43952, Â Â Â Â "timestamp": 1763371502785, Â Â Â Â "target": { Â Â Â Â Â Â "url": "<JENKINS_URL>/job/<JOB_NAME>/127151/" Â Â Â Â } Â Â } Â Â ... ]
Since that update the API no longer contains the target, and you can only get the target from console output.
Please restore target.url data in the promotions API.