-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
Create the following JobDSL job.
freeStyleJob("tryDSL") { description("This a new job") steps { shell('echo "Hello World "') } }
If there is a job which already has this name `tryDSL` on the instance, it will overwrite itself with the awaited content brought by the DSL script.
freeStyleJob should support an update boolean argument to specify if you want or not override
[JENKINS-39765] freeStyleJob should support an update argument to specify if you want or not override
Attachment | New: screenshot-1.png [ 35829 ] |
Assignee | Original: Daniel Spilker [ daspilker ] | New: Jamie Tanna [ jamietanna ] |
I think that the point here should not to control job's
overridingoverwriting in every cases, but only if one of the jobs (re)generated within a DSL script has the same name as the seed job.In other words,it should only control the case where the "tryDSL" seed job's DSL scripts tries to create a job named "tryDSL" in the same folder than the seed job. It is actually a security option, which should be activated by default and lead to a seed job failure if the case is encountered.