Back to index
Summary
Creates a new source code synchronization object.For a list of object types in CloudBees CD/RO, refer to Object types in CloudBees CD/RO. |
projectNameStringrequiredThe name for the project that must be unique among all projects. scmSyncNameStringrequiredName of SCM Sync. branchStringoptionalThe branch configurationNameStringoptionalConfiguration name. configurationProjectNameStringoptionalConfiguration project name. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. destinationDirStringoptionalDestination directory on the agent where local SCM repository will be located. excludeObjectsArray<Unknown>optionalList of paths to the objects that should not be synchronized. includeObjectsArray<Unknown>optionalList of paths to the objects that should be synchronized. relativePathStringoptionalRelative path. repositoryStringoptionalThe SCM repository. resourceNameStringoptionalResource name. scmTypeStringoptionalSpecify the type of SCM. syncTypeStringoptionalSpecify whether it's a sync from SCM or to SCM. Possible values: "fromScm" , "toScm" |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createScmSync( projectName: "test-projectName", scmSyncName: "test-scmSyncName" /* optional arguments */ )