abortAllJobs
abortJob
Aborts a running job.
Arguments
Argument Name | Type | Description |
---|---|---|
jobId |
String |
The primary key of the job, or the name of the job. |
force |
Boolean |
Instructs certain API calls to continue, even though doing to might have consequences. For example, if true, for abortJob, alwaysRun steps will be aborted as well; for import, existing objects will be replaced. If true, setDatabaseConfiguration will store the configuration even if it can’t be validated. |
reason |
String |
User-supplied string. |
completeJob
Completes an externally managed job. Marks the job root step so the job
is marked completed
when all child steps are completed, and updates
the runtime for the root step.
Arguments
Argument Name | Type | Description |
---|---|---|
jobId |
String |
The primary key of the job, or the name of the job. |
force |
Boolean |
Instructs certain API calls to continue, even though doing to might have consequences. For example, if true, for abortJob, alwaysRun steps will be aborted as well; for import, existing objects will be replaced. If true, setDatabaseConfiguration will store the configuration even if it can’t be validated. |
outcome |
String |
Overall outcome for a job or step: success, warning, error, or skipped. |
createJob
Creates an externally managed job that serves as a container for external job steps.
Arguments
Argument Name | Type | Description |
---|---|---|
destinationProject |
String |
The project that will own the job. |
jobNameTemplate |
String |
Template used to determine the default name of jobs launched from a procedure. |
procedureName |
String |
The name of the procedure that should |
projectName |
String |
The name of the project if destinationProject is not specified. |
status |
String |
The starting status for the job. |
deleteJob
getJobDetails
Retrieves complete information about a job, including details from each job step.
getJobInfo
getJobNotes
getJobStatus
getJobSummaries
Retrieves summary information about jobs.
Arguments
Argument Name | Type | Description |
---|---|---|
filters |
Filter array |
How to filter the results. |
includeLastSuccess |
Boolean |
Whether to include the last successful job, if not otherwise included. |
maxFailedSteps |
Integer |
The maximum number of failed steps to return. |
maxJobs |
Integer |
The maximum number of jobs to return. |
maxRunningSteps |
Integer |
The maximum number of running steps to return. |
getJobSummary
Retrieves a job and its job steps with only the specified job and job step properties.
Arguments
Argument Name | Type | Description |
---|---|---|
jobId |
String |
The primary key of the job, or the name of the job. |
jobProperties |
String |
A comma-separated list of intrinsic job properties to include in the output. |
jobStepProperties |
String |
A comma-separated list of intrinsic job step properties to include in the output. |
orderStepsByIndex |
Boolean |
Each job step has a step index which defines its relative position
within its parent step.Set this to |
getJobs
Retrieve all jobs.
Arguments
Argument Name | Type | Description |
---|---|---|
firstResult |
Integer |
Result pagination: the first row to return. |
maxResults |
Integer |
Result pagination: the number of rows to return. |
sortKey |
String |
How to sort the results. |
sortOrder |
String |
Specifies the order to sort the results. |
status |
String |
Filter jobs by this status. |
getJobsForSchedule
modifyJob
moveJobs
provisionCluster
Provisions a cluster.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
The name for the project that must be unique among all projects. (Required) |
clusters |
String array |
A list of clusters that belongs to the environment which need to be provisioned. |
environmentName |
String |
Name of the environment which owns this cluster. |
provisionEnvironment
Provisions an environment.
Arguments
Argument Name | Type | Description |
---|---|---|
environmentName |
String |
The name of the environment. (Required) |
environmentTemplateName |
String |
The name of the environment template. (Required) |
projectName |
String |
The name for the project that must be unique among all projects. (Required) |
environmentTemplateProjectName |
String |
Name for the project containing environment template. |
keepOnError |
Boolean |
Tear down on error flag. |
tierResourceCounts |
TierResourceCount array |
Resource count per environment template tier. |
Usage
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.provisionEnvironment( environmentName: 'test-environmentName', environmentTemplateName: 'test-environmentTemplateName', projectName: 'test-projectName' /* optional arguments */)
provisionResourcePool
Provisions a resource pool.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
The name for the project that must be unique among all projects. (Required) |
resourceCount |
String |
Number of resources to provision. (Required) |
resourcePoolName |
String |
Name for the resource pool. (Required) |
resourceTemplateName |
String |
Name for the resource template; must be unique among all resource templates. (Required) |
keepOnError |
Boolean |
True to keep resource pool on error (default is false). |
Usage
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.provisionResourcePool( projectName: 'test-projectName', resourceCount: 'test-resourceCount', resourcePoolName: 'test-resourcePoolName', resourceTemplateName: 'test-resourceTemplateName' /* optional arguments */)
runProcedure
Creates and starts a new job using a procedure directly or a procedure specified indirectly through a schedule. Returns a new job ID.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
The name for the project that must be unique among all projects. (Required) |
actualParameters |
ActualParameter array |
Parameters passed as arguments to the procedure. |
credentialName |
String |
The name of the credential argument. |
credentialReferenceParameters |
array |
List of credential parameters with references to existing credentials as parameter values. If the parameter value is a property reference then the credential would be resolved at runtime. |
credentials |
Credential array |
Credentials to be used in the job. |
destinationProject |
String |
The project that will own the job. |
parsedWebhookData |
String |
JSON with parsed webhook data to be set on a pipeline/release/procedure run. |
password |
String |
Secret value used to identify the account for a particular user. |
priority |
String |
The priority of the job. |
procedureName |
String |
Name for the procedure; must be unique within the project. |
scheduleName |
String |
Name for the schedule; must be unique among all schedules for the project. |
userName |
String |
User name under which you wish to login. |
webhookData |
String |
The webhook data to be set on the pipeline/release/procedure run. |
webhookHeaders |
String |
The webhook headers in JSON format to be set on the pipeline/release/procedure run. |
runProcess
Runs the specified process. For microservice applications, it is used to deploy a microservice to a Kubernetes cluster.
Arguments
Argument Name | Type | Description |
---|---|---|
applicationName |
String |
The name of the application that owns the process. (Required) |
processName |
String |
The name of the application process. (Required) |
projectName |
String |
The name for the project that must be unique among all projects. (Required) |
actualParameters |
ActualParameter array |
Parameters passed as arguments to the process. |
credentialReferenceParameters |
array |
List of credential parameters with references to existing credentials as parameter values. If the parameter value is a property reference then the credential would be resolved at runtime. |
credentials |
Credential array |
Credentials to be used in the job. |
destinationProject |
String |
The project that will own the job. |
enforceDependencies |
Boolean |
If application dependencies are defined for the specified application, enforce them for successful deployment. |
environmentName |
String |
Environment name to create from template. |
environmentProjectName |
String |
The name of the project to which the environment or environment template belongs to. |
environmentTemplateName |
String |
Environment template name. |
environmentTemplateProjectName |
String |
The name of the project to which the environment template belongs to. |
environmentTemplateTierMapName |
String |
Environment template tier map name. |
keepOnError |
Boolean |
True to keep environment on error (default is false). |
parsedWebhookData |
String |
JSON with parsed webhook data to be set on a pipeline/release/procedure run. |
priority |
String |
The priority of the job. |
rollingDeployEnabled |
Boolean |
Perform rolling deployment. |
rollingDeployManualStepAssignees |
String array |
A list of assignees who receive the notification when rolling deploy iteration completes. |
rollingDeployManualStepCondition |
String |
Defines run condition on manual step created during rolling deployment. |
rollingDeployPhases |
String array |
One or more rolling deploy phases to be used for deployment. |
scheduleName |
String |
Name for the schedule; must be unique among all schedules for the project. |
smartDeploy |
Boolean |
Smart deploy — if provided actual param will be overridden. |
snapshotName |
String |
Name for the snapshot. |
stageArtifacts |
Boolean |
Stage all artifacts being deployed as part of the application process. |
tierMapName |
String |
The name of the tier map used to determine where to run the process. |
tierResourceCounts |
TierResourceCount array |
Resource count per resource template tier. |
validate |
Boolean |
Validate the process and environment. |
webhookData |
String |
The webhook data to be set on the pipeline/release/procedure run. |
webhookHeaders |
String |
The webhook headers in JSON format to be set on the pipeline/release/procedure run. |
Usage
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.runProcess( applicationName: 'test-applicationName', processName: 'test-processName', projectName: 'test-projectName' /* optional arguments */)
runScmSync
Run a new job to synchronize CD/RO server with SCM based on given scm sync definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
The name for the project that must be unique among all projects. (Required) |
scmSyncName |
String |
Name of SCM Sync. (Required) |
parsedWebhookData |
String |
JSON with parsed webhook data to be set on a pipeline/release/procedure run. |
webhookData |
String |
The webhook data to be set on the pipeline/release/procedure run. |
webhookHeaders |
String |
The webhook headers in JSON format to be set on the pipeline/release/procedure run. |
setJobName
setupWebhook
Run the specified setupWebhook, returns RunProcedureResult.
Arguments
Argument Name | Type | Description |
---|---|---|
actualParameters |
ActualParameter array |
Parameters passed to the invoked procedure. |
applicationName |
String |
The name of the application. |
credentials |
Credential array |
Credentials to be used in the job. |
path |
String |
Property path string. |
pipelineName |
String |
The name of the pipeline. |
procedureName |
String |
Name for the procedure; must be unique within the project. |
projectName |
String |
The name for the project that must be unique among all projects. |
releaseName |
String |
The name of the release. |
scmSyncName |
String |
The name of the scm sync. |
triggerName |
String |
The name of the trigger. |