Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Best way to copy step to parent configuration that already exists #4218

jclx ·

We often have a master configuration at a path like
/root/Master (Step1, Step2...)
and have children under Master where we make changes by overriding a step. (Awesome feature).
/root/Master/Dev (Step1 overrides /root/Master)
Then once we have debugged everything we want to push those changes to /root/Master step with a replace
We have to manually copy those changes up. Or delete step in /root/Master and then copy the entire step but if it is part
of a composition we have to add it back in because of delete.

A promote/replace button would be nice or I missed some other way to do this.

  • replies 5
  • views 162
  • stars 0
robinshen ADMIN ·

You may consider creating a maintenance configuration with below settings:

  1. Create variable "srcConf" prompting as configuration picker
  2. Create variable "stepNameToCopy" prompting for selection with available choices scripted like below:
${groovy:
import com.pmease.quickbuild.util.StringUtils
def srcConf = system.configurationManager.get(vars.getValue("srcConf"))
if (srcConf != null)
  return StringUtils.join(srConf.stepDOMs.keySet())
else
  return ""
}
  1. Add a step to run below groovy script on QB server:
groovy:
def srcConf = system.configurationManager.get(vars.getValue("srcConf"))
def stepNameToCopy = vars.getValue("nameOfStepToCopy")
def destConf = srcConf.parent
destConf.stepDOMs[stepNameToCopy] = srcConf.stepDOMs[stepNameToCopy]
system.configurationManager.save(destConf)

Then each time you want to promote a step, run this configuration telling it the configuration and step to promote

jclx ·

That could work.
Any thoughts on adding a copy with overwrite promtp option?

robinshen ADMIN ·

What do you mean by "overwrite prompt option"?

jclx ·

Wanting to replace step with changes from a child configuration.
Step exists in this configuration and then
when you click the 'Copy step from another configuration' and select step from a child cfg and then click save you get the message.
'This name is already used by another step in this configuration'
At bottom we have buttons 'Save' , 'Cancel' would be nice to have 'Overwrite'
Or instead of copy step button add copy and replace button too.

robinshen ADMIN ·