Back to index
Summary
Export part or all of the server data to an XML file.--compress
can be used to compress the XML output. --excludeJobs
can be used to exclude jobs from the export data. --path
exports the single object specified by the path. The default is to export all data in the system.For a list of object types in CloudBees CD/RO, refer to Object types in CloudBees CD/RO. |
fileNameStringrequiredThe filename from/to which the import/export is done. compressBooleanoptionalIf true, the output will be compressed. disableProjectTrackingBooleanoptionalIf set to true when importing or exporting a project, even if the original project had change tracking enabled, make change tracking of the newly imported or exported project be disabled from its creation. If you don't need to track changes to the new project, this avoids the change tracking overhead that would otherwise slow down the import operation, and also saves having to subsequently disable change tracking of the reimported project. downloadBooleanoptionalExport file will be available to download. excludeJobsBooleanoptionalTrue to exclude jobs from the export. objectIdStringoptionalObject ID. objectTypeStringoptionalObject type. pathStringoptionalA property path indicating a single object to be exported (for export) or the location at which to import (for import). reducedDetailChangeHistoryBooleanoptionalSet to 0 or false to prevent importing a large project that has change tracking enabled from automatically reducing the level of detail that it tracks for the change history of the import -- this will make the import operation take longer and put more load on the database, but will allow the Change History feature to still show the full detail of entities owned by the imported project that were created by the import operation. relocatableBooleanoptionalTrue to emit relocatable content (no IDs, ACLs, or times). revisionNumberIntegeroptionalRevision number. safeModeStringoptionalDetermines the mode to use during a full export. If set to none , the default behavior applies. If set to restart , then the server will be stopped during the full export and restarted on completion. If set to shutdown , then the server will be stopped during the full export and shutdown on completion.Possible values: "none" , "restart" , "shutdown" withAclsBooleanoptionalTrue to emit ACLs in relocatable exports. withNotifiersBooleanoptionalTrue to emit emailNotifiers in relocatable exports. withVersionNumbersBooleanoptionalTrue to emit version numbers (ignored on import). |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.export( fileName: "test-fileName" /* optional arguments */ )