To change template parameter without changing it in children
I have a lot of deployment configurations that are adopting root template.
And now I want to change one Parameter (environment variable) in the root template, but to pin the old value in all children deployment configuration.
The goal is to force all new deployment configuration that would be created to have a new value inside their deployment. And then step-by-step move with old deployment configuration and change this value only where it is required.
Please sign in to leave a comment.
Hi,
I'm afraid not directly. There might be a way to achieve it but it would take some time and effort. Detaching a build configuration from a template allows it to keep all the parameters from the template. You could do that for all your builds, then modify the template, then reattach it. As the parameter is already defined in the build, with a different value, it should be kept. You could ease this task by running it via a script through the REST API.
The logical and best solution would be to create a new "new" template and keep the old one. That would make it much easier in case you need to modify something in the old or new ones without modifying the rest.
Thank you for answer. I'll definitely consider using REST API.