getTrigger

On this page
Back to index

Summary

Retrieves a trigger by name.
projectName
Stringrequired
The name for the project that must be unique among all projects.
releaseName
Stringoptional
The name of the release to run.
triggerName
Stringrequired
The name of the trigger.
applicationName
Stringoptional
The name of the application that owns the trigger and the process that should be run.
pipelineName
Stringoptional
The name of the pipeline to run.
procedureName
Stringoptional
The name of the procedure that owns the process to run.
scmSyncName
Stringoptional
The name of the scmSync trigger belong to.

Usage

Groovy

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