Re: trigger job via API

2013-06-03 Thread Louis Roché
Ok, it seems that you need to add xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); 2013/5/30 Louis Roché > Hi, > > I try to trigger a job via the api with a parameter. > > With curl, it works: > > curl -X POST " > http://192.168.5.230:8080/job/Generate%20new%20refe

Re: trigger job via API

2013-05-31 Thread Louis Roché
Ok, I can send params now, but I have a problem with the charset. If I send "E63H 総組立" as the value of exchange_revision, I receive "E63H �D�". My code: function httpPost(theUrl, Params) { var xmlHttp = null; xmlHttp = new XMLHttpRequest(); alert(Params); xmlHttp.open( "POST",

trigger job via API

2013-05-30 Thread Louis Roché
Hi, I try to trigger a job via the api with a parameter. With curl, it works: curl -X POST "http://192.168.5.230:8080/job/Generate%20new%20reference%20files/build?token=toto"; --data 'json={"parameter":[{"name":"exchange_revision","value":"superargument"}]}' But I want to do it from javascr

Trigger job via API

2013-05-30 Thread Louis Roché
Hi. I try to trigger a job with a parameter via -- 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. For more options,