-
Improvement
-
Resolution: Won't Do
-
Trivial
-
None
At present, the "Add a new template to all docker clouds" build step silently skips any cloud which already has a template based on the specified image.
What I'd like is the ability to update the template.
i.e. have a Jenkins build which first built a new docker image (using the "Build / Publish Docker Containers" build step) and then updates the docker cloud templates to use it.
(it would also be nice to be able to be more selective about which clouds the template was applied to...)
This would mean that it would be necessary to use something other than "Docker Image" as a means of identifying which template to replace, because a primary use case here is to "stop using myimage:oldversion and use myimage:newversion instead".
(and you can't use labels because that's also something one is likely to want to update too).
[JENKINS-39105] Add new template build step should be able to update template
Assignee | Original: magnayn [ magnayn ] | New: Nicolas De Loof [ ndeloof ] |
Assignee | Original: Nicolas De Loof [ ndeloof ] | |
Resolution | New: Won't Do [ 10001 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
I plan to revisit this feature, as such administrative task should not be implemented as a builder arbitrary user configure on jenkins.
A simple option could be for the template to use a variable for image name, this variable being updated when image is rebuilt. Another more docker-centric approach would be to define image by it's sha256, not just tag, and get some hook to tell jenkins this image has a new build with updated sha256, so jenkins will use it for new build. When image is built within Jenkins we could then automatically trigger this update.