-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
job-dsl 1.53
I have the following issue when creating jobs with the job DSL plugin:
DSL-SeedJob1:
- Run1: Generate Job1, Job2, Job3
- Run2: Generate Job1 (Job2, Job3 are deleted as configured in the Seed Job)
DSL-SeedJob2:
- Run1: Generate Job2, Job3
After this sequence, Job2 and Job3 are referenced in the DSL-SeedJob1 as "Generated Items", although they were last generated by DSL-SeedJob2.
The issue is now that if I rerun DSL.SeedJob1, it will delete Job2 and Job3 again, although it did not create it the last time.
Is there a reason why the references of older runs are stored forever in a seed job? If not I would recommend to update the references every time the seed job runs.
The seed job stores the generated jobs in each build. If you do not discard old builds, it will keep the history forever. But if you only keep one build, the seed job will forget the history and will not delete previously deleted jobs again.