Back to index
Summary
Modifies an existing process.projectNameStringrequiredThe name for the project that must be unique among all projects. processNameStringrequiredThe name of the process. applicationNameStringoptionalThe name of the application, if the process is owned by an application. componentApplicationNameStringoptionalIf specified, the component is scoped to this application not the project. componentNameStringoptionalThe name of the component, if the process is owned by a component. credentialNameStringoptionalThe name of a credential to attach to this process. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. exclusiveEnvironmentBooleanoptionalTrue if environment is exclusive to the application or service process. microserviceApplicationNameStringoptionalIf specified, the microservice is scoped to an application. microserviceNameStringoptionalThe name of the microservice, if the process is owned by a microservice. newNameStringoptionalThe new name for an existing object that is being renamed. processTypeStringoptionalDefines type of action performed by the process. Possible values: "DEPLOY" , "OTHER" , "UNDEPLOY" smartUndeployEnabledBooleanoptionalTrue if smart deploy should be enabled for the undeploy component process. timeLimitStringoptionalMaximum amount of time the step can execute; abort if it exceeds this time. timeLimitUnitsStringoptionalUnits for step time limit: seconds, minutes, or hours. Possible values: "hours" , "minutes" , "seconds" workingDirectoryStringoptionalWorking directory in which to execute the command for this process. A relative name is interpreted relative to the root directory for the job's workspace. workspaceNameStringoptionalThe name of the default workspace for this process. |
Usage
Perl
$cmdr->modifyProcess( "test-projectName", # projectName "test-processName" # processName # optionals );
ectool
ectool modifyProcess \ "test-projectName" `# projectName` \ "test-processName" `# processName` \ # optionals
Examples
Perl
To modify a component process in a master component:
$cmdr->modifyProcess('Default', 'Deploy', {componentName => 'WAR file', newName => 'Daily Update'});
To modify a component process in a specific application:
$cmdr->modifyProcess('Default', 'Deploy', {componentName => 'WAR file', componentApplicationName => 'Shopping Cart', newName => 'Daily Update'});
To modify an application process:
$cmdr->modifyProcess('Default', 'Deploy', {applicationName => 'Shopping Cart', newName => 'Daily Update'});
ectool
To modify a component process in a master component:
ectool modifyProcess 'Default' 'Deploy' --componentName 'WAR file' --newName 'Daily Update'
To modify a component process in a specific application:
ectool modifyProcess 'Default' 'Deploy' --componentName 'WAR file' --componentApplicationName 'Shopping Cart' --newName 'Daily Update'
To modify an application process:
ectool modifyProcess 'Default' 'Deploy' --applicationName 'Shopping Cart' --newName 'Daily Update'