Back to index
Summary
Modify an EmailNotifier on a property sheet container specified by an emailNotifierSelector.jobIdStringoptionalThe primary key or name of the job container of the email notifier. notifierNameStringrequiredThe name of the email notifier. applicationNameStringoptionalThe name of the application which is related to the target email container (Process/ProcessStep). componentNameStringoptionalThe name of the component which is related to the target email container (Process/ProcessStep). conditionStringoptionalA fixed text or text embedding property references that is evaluated into a logical TRUE or FALSE. An empty string, a 0 or false is interpreted as FALSE. Any other result string is interpreted as TRUE.configNameStringoptionalName for an email configuration; or a text that - through property expansion - results into such an email configuration name. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. destinationsStringoptionalA list of space-separated user names, email addresses or email aliases or a text that - through property expansion - results into such a list. environmentNamesArray<Unknown>optionalName of the environments. eventTypeStringoptionalAn enumeration of valid event categories recognized by the email notifiers. Possible values: "onCompletion" , "onEnter" , "onStart" , "onWaitOnError" flowNameStringoptionalThe name of the flow container of the email notifier. flowRuntimeIdStringoptionalThe primary key or name of the flowRuntime container of the email notifier. flowRuntimeStateIdStringoptionalThe primary key or name of the flowRuntimeState container of the email notifier. flowStateNameStringoptionalThe name of the flow container of the email notifier. formattingTemplateStringoptionalString containing email formatting instructions for generating notifications. gateTypeStringoptionalThe type of the gate. Possible values: "POST" , "PRE" groupNamesArray<Unknown>optionalA list of names of the groups which receives the notification. jobStepIdStringoptionalThe primary key of the job-step container of the email notifier. newNameStringoptionalThe new name for an existing object that is being renamed. notificationTypeStringoptionalThe notification type which will be stored to the ec_notificationType property. Possible values: "always" , "failure" , "success" pipelineNameStringoptionalThe name of the pipeline container of the email notifier. procedureNameStringoptionalThe name of the procedure container of the email notifier. processNameStringoptionalThe name of the process container of the email notifier. processStepNameStringoptionalThe name of the process step container of the email notifier. projectNameStringoptionalThe name of the project container of the email notifier. releaseNameStringoptionalThe name of the release containing the pipeline. stageNameStringoptionalThe name of the stage container of the email notifier. stateDefinitionNameStringoptionalThe name of the state definition container of the email notifier. stateNameStringoptionalThe name of the state container of the email notifier. stepNameStringoptionalThe name of the step container of the email notifier. userNamesArray<Unknown>optionalA list of names of the users who receives the notification. workflowDefinitionNameStringoptionalThe name of the workflow definition container of the email notifier. workflowNameStringoptionalThe name of the workflow container of the email notifier. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.modifyEmailNotifier( notifierName: "test-notifierName" /* optional arguments */ )