runScmSync

Back to index

Summary

Runs the specified source code synchronization object.
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

Perl

$cmdr->runScmSync( "test-projectName", # projectName "test-scmSyncName" # scmSyncName # optionals );

ectool

ectool runScmSync \ "test-projectName" `# projectName` \ "test-scmSyncName" `# scmSyncName` \ # optionals

Examples

Perl

$cmdr->runScmSync('default' 'testScmSync1' {webhookData => "test", webhookHeaders => "Test", parsedWebhookData => "\"{\"branch\": \"main\"}\""});

ectool

ectool runScmSync 'default' 'testScmSync1' \ --webhookData "test" \ --webhookHeaders "test" \ --parsedWebhookData "{\"branch\":\"main\"}"