Pass parameter to Jenkins Ant job by HTTP POST -


i try start jenkins ant job (not parameterized) url , pass parameter job. use http post in ant:

<taskdef name="http" classname="org.missinglink.ant.task.http.httpclienttask"/> <!-- using cdata section avoid having escape ampersand --> <property name="jenkins.url"><![cdata[${job.url}/build?myparameter=myvalue&delay=0sec]]></property> <http url="${jenkins.url}" method="post">     <credentials username="myusername" password="mypassword"/> </http> 

the job starts without problem, in job's ant script myparameter undefined.

any idea wrong?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -