Back to index
Summary
Modifies an existing 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 clearExcludeObjectsBooleanoptionalWhether or not to clear exclude objects for this object. clearIncludeObjectsBooleanoptionalWhether or not to clear include objects for this object. 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. newNameStringoptionalThe new name for an existing object that is being renamed. 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" triggerEnabledBooleanoptionalTrue if trigger configured and enabled, false otherwise. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.modifyScmSync( projectName: "test-projectName", scmSyncName: "test-scmSyncName" /* optional arguments */ )