Is it possible to programmatically uninstall a hudson application via the REST API?

Can I create jobs using / createItem? name = JOBNAME, but can't find anything in the job deletion docs.

+7
source share
2 answers

It was discovered by looking at how the delete button does this, that you can just send to joburl / doDelete a bit like this.

wget -qO- --post-data="anything" http://HOST/job/JOBNAME/doDelete > /dev/null 
+4
source

Go to <JobURL>/api/? . You will get the text below.

Delete task

To programmatically delete this job, do an HTTP POST for this URL.

DISCLAIMER: I tested it with Jenkins. But this should also work in Hazon.

+3
source

All Articles