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
Post a Comment