Ah........ yes, thanks for pointing me in the right direction. I had to do 'buildWithParameters' EVEN THOUGH all the parameters have default values.
Thanks! Regards, Asfand Yar Qazi On 17 February 2016 at 21:40, Victor Martinez <victormartinezru...@gmail.com> wrote: > Correct me if I'm wrong but that job has any parameters? If so you will need > to run another curl command: > - https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API > > You can also add some verbose output: -v, --verbose > > Cheers > > On Wednesday, 17 February 2016 14:01:33 UTC, Asfand Yar Qazi wrote: >> >> Hi, >> >> I am having trouble triggering builds remotely. I am using Jenkins 1.647. >> >> (Please note: I have replaced sensitive info in the below examples with >> made-up values.) >> >> I have a job where I have ticked the "Trigger builds remotely" box, and >> entered a token (for example: "123456"). >> >> I added a user 'remote-app-build' with an API token (for example: >> "apiapi"). >> >> Then, I try to trigger the build remotely with: >> >> curl -X POST --data "token=123456" >> "http://remote-app-build:api...@54.194.xxx.xxx:8080/job/app-build/build" >> >> I get the output: >> >> <html> >> <head> >> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> >> <title>Error 400 This page expects a form submission</title> >> </head> >> <body><h2>HTTP ERROR 400</h2> >> <p>Problem accessing /job/app-build/build. Reason: >> <pre> This page expects a form submission</pre></p><hr >> /><i><small>Powered by Jetty://< >> /small></i><br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> <br/> >> >> </body> >> </html> >> * Connection #0 to host 54.194.XXX.XXX left intact >> >> As I said before, I have replaced sensitive info with made-up values. >> >> Can you see what I am doing wrong? >> >> Thanks > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/Q6gyKXITQwQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/1c1b7cc2-3a6b-4b94-9c59-a54d025ab08b%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAFTSPUXmC8CEdTv6OC8cuLZLBf64goPd-hJqPtw3d3OnWtbqPQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.