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. excludeObjectArrayoptionalList of paths to the objects that should not be synchronized. exportParameterArrayoptionalList of export parameters. importParameterArrayoptionalList of import parameters. includeObjectArrayoptionalList of paths to the objects that should be synchronized. relativePathStringoptionalRelative path. repositoryStringoptionalThe SCM repository. resourceNameStringoptionalResource name. scmTypeStringoptionalSpecify the type of SCM. Possible values: "git" syncTypeStringoptionalSpecify whether it's a sync from SCM or to SCM. Possible values: "fromScm" , "toScm" |
Usage
Perl
$cmdr->createScmSync( "test-projectName", # projectName "test-scmSyncName" # scmSyncName # optionals );
ectool
ectool createScmSync \ "test-projectName" `# projectName` \ "test-scmSyncName" `# scmSyncName` \ # optionals