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:[email protected]: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 the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ad79d52e-c2b2-4511-a628-db6999841068%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to