Closed bravegnu closed 9 years ago
I would like to see the update feature added to autojenkins. If you think this should be done as a separate API, then I will submit this as a separate API ...
This seems OK to me, I'll take a look in detail when I get more time.
The only problem that I see with this approach is, it will break existing users if they have a variable called "update" in their template.
Good point. Maybe you can solve that (make it less likely) if you rename that parameter with a leading underscore, such as _update
? Or I'd rather call it _overwrite
which I believe is more accurate, or _force
(which is more in line with unix-y commands).
Thanks! This will be included in the next release.
Added an optional argument to create_copy(), to indicate whether to update the job if it already exists.