2012年3月14日星期三

Jenkins users - Modifying Job Configs Automatically

Jenkins users - Modifying Job Configs Automatically

You can also POST an updated config.xml to the same URL to
programmatically update the configuration of a job.

(c) http://$JENKINS/job/$JOBNAME/api/?

Use HTTP GET http://$JENKINS/job/$JOBNAME/config.xml to read job's
configuration. Use HTTP POST http://$JENKINS/job/$JOBNAME/config.xml (to
the same URL) to update an existing one.

An original command provided by Jesse will try to create a new job
because of createItem? in URL. Did you try POSTing to
http://$JENKINS/job/$JOBNAME/config.xml ?

没有评论: