Process commands

createProcess

Creates a new process for an application,service or component.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

processName

String

The name of the process. (Required)

serviceName

String

The name of the service, if the process is owned by a service.

applicationName

String

The name of the application, if the process is owned by an application.

componentApplicationName

String

If specified, the component is scoped to this application not the project.

componentName

String

The name of the component, if the process is owned by a component.

credentialName

String

The name of a credential to attach to this process.

description

String

Comment text describing this object that is not interpreted at all by CloudBees Flow.

exclusiveEnvironment

Boolean

True if environment is exclusive to the application or service process.

processType

String

Defines type of action performed by the process

serviceApplicationName

String

If specified, the service is scoped to this application not the project.

smartUndeployEnabled

Boolean

True if smart deploy should be enabled for the undeploy component process

timeLimit

String

Maximum amount of time the step can execute; abort if it exceeds this time.

timeLimitUnits

String

Units for step time limit: seconds, minutes, or hours.

workingDirectory

String

Working 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.

workspaceName

String

The name of the default workspace for this process.

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.createProcess(
                projectName: 'test-projectName',
                processName: 'test-processName'
                /* optional arguments */)

deleteProcess

Deletes an application or component process.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

processName

String

The name of the process. (Required)

serviceName

String

The name of the service, if the process is owned by a service.

applicationName

String

The name of the application, if the process is owned by an application.

componentApplicationName

String

If specified, the component is scoped to this application not the project.

componentName

String

The name of the component, if the process is owned by a component.

serviceApplicationName

String

If specified, the service is scoped to this application not the project.

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.deleteProcess(
                projectName: 'test-projectName',
                processName: 'test-processName'
                /* optional arguments */)

getProcess

Get an application,service or component process.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

processName

String

The name of the process. (Required)

serviceName

String

The name of the service, if the process is owned by a service.

applicationEntityRevisionId

String

Revisionid of the versioned object

applicationName

String

The name of the application, if the process is owned by an application.

componentApplicationName

String

If specified, the component is scoped to this application not the project.

componentName

String

The name of the component, if the process is owned by a component.

serviceApplicationName

String

If specified, the service is scoped to this application not the project.

serviceEntityRevisionId

String

Revisionid of the versioned object

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getProcess(
                projectName: 'test-projectName',
                processName: 'test-processName'
                /* optional arguments */)

getProcesses

Retrieve all processes in an application or component.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

serviceName

String

The name of the service, if the process is owned by a service.

applicationEntityRevisionId

String

Revisionid of the versioned object

applicationName

String

The name of the application, if the process is owned by an application.

componentApplicationName

String

If specified, the component is scoped to this application not the project.

componentName

String

The name of the component, if the process is owned by a component.

serviceApplicationName

String

If specified, the service is scoped to this application not the project.

serviceEntityRevisionId

String

Revisionid of the versioned object

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getProcesses(
                projectName: 'test-projectName',
                /* optional arguments */)

modifyProcess

Modifies an existing process.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

processName

String

The name of the process. (Required)

serviceName

String

The name of the service, if the process is owned by a service.

applicationName

String

The name of the application, if the process is owned by an application.

componentApplicationName

String

If specified, the component is scoped to this application not the project.

componentName

String

The name of the component, if the process is owned by a component.

credentialName

String

The name of a credential to attach to this process.

description

String

Comment text describing this object that is not interpreted at all by CloudBees Flow.

exclusiveEnvironment

Boolean

True if environment is exclusive to the application or service process.

newName

String

New name for an existing object that is being renamed.

processType

String

Defines type of action performed by the process

serviceApplicationName

String

If specified, the service is scoped to this application not the project.

smartUndeployEnabled

Boolean

True if smart deploy should be enabled for the undeploy component process

timeLimit

String

Maximum amount of time the step can execute; abort if it exceeds this time.

timeLimitUnits

String

Units for step time limit: seconds, minutes, or hours.

workingDirectory

String

Working 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.

workspaceName

String

The name of the default workspace for this process.

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.modifyProcess(
                projectName: 'test-projectName',
                processName: 'test-processName'
                /* optional arguments */)