Status: Closed (View Workflow)
The XML API only gives a text blob for the upstream cause:
<action><cause><shortDescription>Started by upstream project "blah" build number 62</shortDescription></cause></action>
It would be nice to have structured access to the data.
Can you add elements for upstream job name and build number, please?
Currently I have to parse them out from cause/shortDescription. This is fragile (format can change) and is not convenient (especially in shell scripts).
And still it is not possible to use API to set downstream build parameters, e.g. to set TAG parameter and use it in SVN checkout step.
I suggest taking your problem description to the users mailing list to see what others have done.
I see. The cause XML data doesn't have anything beside a short description
Code changed in hudson
User: : mindless
[FIXED JENKINS-5074] expose upstream cause details via remote API
My original comment quoted below makes less sense, now that the problem has been refined