Is it possible to retrieve id of Jenkins build I triggered via its API? -
let's trigger build sending request /job/awesomesauce/build
. possible retrieve id of triggered build?
i'm aware can try access /job/awesomesauce/lastbuild/api/json
, give me erroneous information in case there multiple builds running @ once. additionally, there seem slight delay (few seconds) before gives me information running build.
i had sort of thing, , here workaround used: had dummy parameter passed build (in case build_id of build; in case may timestamp), queried , parsed both build queue api ([server]/queue/api/...
) , regular api (in case build has finished) build containing appropriate parameter value.
Comments
Post a Comment