If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
Created: 08/Oct/18 01:56 AM
Updated: 09/Oct/18 05:07 PM
|
|
Component/s: |
None
|
Affects Version/s: |
8.0.5
|
Fix Version/s: |
None
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
Environment:
|
Linux
|
|
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
|
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 |
Show » |
|
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"));
}