Back to index
Summary
Creates a new source code synchronization object.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. excludeObjectsStringoptionalList of paths to the objects that should not be synchronized. exportParametersStringoptionalList of export parameters. importParametersStringoptionalList of import parameters. includeObjectsStringoptionalList 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