# .cnb.yml # 匹配以 release 开头的分支名 release*: # 自定义按钮可触发的事件 web_trigger_one: - stages: - name: 输出环境变量 script: - echo $a - echo $b - echo $var1 - echo $var2 - echo $var3 # 匹配以 dev 开头的分支名 dev*: web_trigger_two: - stages: - name: 执行任务 script: echo "job" web_trigger_three: - stages: - name: 执行任务 script: echo "job" # 匹配所有分支名 "**": web_trigger_four: - stages: - name: 执行任务 script: echo "job"