runScmSync

On this page
Back to index

Summary

Run a new job to synchronize CD/RO server with SCM based on given scm sync definition.
projectName
Stringrequired
The name for the project that must be unique among all projects.
scmSyncName
Stringrequired
Name of SCM Sync.
parsedWebhookData
Stringoptional
JSON with parsed webhook data to be set on a pipeline/release/procedure run.
webhookData
Stringoptional
The webhook data to be set on the pipeline/release/procedure run.
webhookHeaders
Stringoptional
The webhook headers in JSON format to be set on the pipeline/release/procedure run.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.runScmSync( projectName: "test-projectName", scmSyncName: "test-scmSyncName" /* optional arguments */ )