I would like to create a groovy script to export each of configurations under root to separate zip files. May you please provide an example on how to do that?
Thank you in advance,
ptrinh
Description
Hi Support Team,
I would like to create a groovy script to export each of configurations under root to separate zip files. May you please provide an example on how to do that?
Thank you in advance,
ptrinh
groovy:
def rootConf = system.configurationManager.get("root");
for (eachConf in system.configurationManager.getChildren(rootConf)) {
def exportOption = new com.pmease.quickbuild.util.ConfigurationExportOption();
exportOption.configurationPath = eachConf.pathName;
exportOption.recursive = true;
com.pmease.quickbuild.entitymanager.DataManager.instance.exportConfigurations(exportOption, new File("/path/to/export.zip"));
}