I can create jobs using /createItem?name=JOBNAME, but cant find anything in the docs about deleting jobs.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Discovered by looking into how the delete button does it that you can just post to joburl/doDelete a bit like this..
wget -qO- --post-data="anything" http://HOST/job/JOBNAME/doDelete > /dev/null
回答2:
Go to <JobURL>/api/?
You will get below text.
Delete a job
To programmatically delete this job, do HTTP POST to this URL.
DISCLAIMER: I tested it with Jenkins. But this should also work in Hudson.