Hi.
I am trying to create a synchronous REST API call to execute a job. I
was able to submit a job using the Jenkins REST API, but I am not able
to get the build ID so I can query if the build completed and was
successful. I am aware that the build ID is not obvious, as there may be
no idle executors and build could be added to the build queue. I tried
to use the idea proposed in
https://issues.jenkins-ci.org/browse/JENKINS-12827 , but Location header
in HTTP response always point to job URL
(eg http://<jenkins_server>/job/<job_name>). I am using jenkins 1.6.2.0.
Is this a known bug or I am doing something wrong?
Regards,
Alan Evangelista