I am using jenkins job dsl to create pipelineJob, I do not know how to delete those jobs through the same plugin.
I wondered around in the code base, and I think it is not doable.
I thought of using the rest api to make a call to the api to delete a job, can anyone give me any lead on how to do that in groovy or extending a Java class.
Basically it would be:
- read the jobs name in the job.groovy file
- make the call to the rest api (jenkins_base_url+/job+/doDelete)
Huuuge THANKS