Tiziano
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To post to this group, send email to job-dsl...@googlegroups.com.
To unsubscribe from this group, send email to job-dsl-plugi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/job-dsl-plugin/-/pkjc_tQ3bucJ.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Justin,
what I meant was to find a way to delete job that the seed job has previously created. That has nothing to do with generated job that no longer reference a seed job.
In my scenario a seed job is scheduled daily and generates new jobs if needed.
But those jobs after a while need to be deleted because they don't make sense anymore.
If I look at the output of the seed job i see something like:
...
Building in workspace /var/lib/jenkins/jobs/Weekly-Scheduler/workspace
Using dsl from string
Existing Templates: MyJob-Template
New Templates:
Unreferenced Templates:
Adding jobs:
Existing jobs: GeneratedJob{...},GeneratedJob{...},...
Removing jobs:
...
I didn't understand yet how the plugin can be instructed to Remove jobs.
I actually wasn't really aware that the plugin keeps his own kind of state based on previous runs.
Just for my own understanding, is this state kept based on the reference that each job has with the seed job that created it?
Adding some documentation about these internals could be useful,
or am I blind and those info are already somewhere?