I am triggering builds with parameters in Jenkins using Python request to the http://jenkins:8080/view/projectAlpha/job/deploy_job_with_params/build and I don't get any queue or build numbers to identify my build.
According to Jenkins' /api page for the above url:
"To programmatically schedule a new build, post to this URL (means the /build url - RaamEEIL). If the build has parameters, post to this URL (means the /buildWithParameters url - RaamEEIL) and provide the parameters as form data. Either way, the successful queueing will result in 201 status code with Location HTTP header pointing the URL of the item in the queue."
However, instead of getting the queue's url (e.g. http://jenkins:8080/queue/item/21038/api/json) in the location header that returns when depploying the build, I get the url http://jenkins:8080/view/projectAlpha/job/deploy_job_with_params/ so basically I don't get any queue number or build number
I read a suggestion for a workaround, to send an additional parameter with some id, which I can use to verify that the latest build is my build or use it to search through a list of builds until I find the correct build.
Thanks.