You can configure plugins for a pipeline job to send notifications through DingTalk, email, Enterprise WeChat (WeCom), Feishu, or Webhooks.
Example
The following example configures a DingTalk notification plugin:
stages:
build_stage:
name: Build Stage
jobs:
build_job:
name: Build Job
runsOn:
group: public/ap-southeast-1
container: build-steps-public-registry.ap-southeast-1.cr.aliyuncs.com/build-steps/alinux3:latest
steps:
…………
plugins:
- name: DingTalk Notification Plugin
plugin: DingTalkPlugin
triggerState:
- success
- fail
with:
webhook: <ding-talk-webhook-url>
noticeContent:
- pipelineName
- operator
- pipelineJob
- pipelineStage
- status
customContent: <DIY-message>
at: <mobile-phone>
Parameter reference
stages.<stage_id>.jobs.<job_id>.plugins
Optional. A job can be configured with one or more plugins.
stages.<stage_id>.jobs.<job_id>.plugins[].name
Required. The display name of the plugin. Maximum length: 30 characters.
stages.<stage_id>.jobs.<job_id>.plugins[].plugin
Required. The job plugin to use. Supported plugins: DingTalkPlugin, WechatPlugin, FeishuPlugin, EmailPlugin,WebhookPlugin.
For more information, see the plugin list provided by Flow.
stages.<stage_id>.jobs.<job_id>.plugins[].triggerState
Required. The job states that trigger the notification. Supported states: success,fail,cancel,skip,wait.
stages.<stage_id>.jobs.<job_id>.plugins[].with
Required. The plugin-specific parameters. For more information, see the plugin descriptions provided by Flow.