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