All Products
Search
Document Center

Alibaba Cloud DevOps:Plugins

Last Updated:Mar 24, 2025

Plugins: A pipeline job can be configured to send notifications to designated channels, such as DingTalk, email, Enterprise WeChat (WeCom), Feishu, Webhooks, etc., by configuring appropriate plugins.

Example

Below is an example configuration for 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>

Detailed Explanation

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 pipeline job plugin. The length limit is 30 characters.

stages.<stage_id>.jobs.<job_id>.plugins[].plugin

Required. Select the specific job plugin to use. Currently, the following plugins are supported:DingTalkPluginWechatPluginFeishuPluginEmailPlugin,WebhookPlugin.

Refer to the plugin list provided by Flow for details.

stages.<stage_id>.jobs.<job_id>.plugins[].triggerState

Required. Select the trigger state of the pipeline job plugin. When the pipeline job enters the selected state, the message notification will be triggered, and currently the following states are supported:success,fail,cancel,skip,wait.

stages.<stage_id>.jobs.<job_id>.plugins[].with

Required. Fill in the parameters of the pipeline job plugin. For details, see the detailed description of the plugins provided by Flow.