Release Notes
Cloud Native Build Community Edition Open Beta
.cnb.yml file in the root directory of the code repository.']

Pull Request on the master branch, trigger the pipeline to perform lint and test detection. If failed, send a notification.main.pull_request.#branch namemain:
pull_request event occurs under the branch, trigger build:#branch namemain:#event namepull_request:
#branch namemain:#event namepull_request:# Array type means multiple pipelines- name: pr-checkstages:
#branch namemain:#event namepull_request:# Array type means multiple pipelines- name: pr-check# Multiple tasks under the pipelinestages:# Task to execute- name: lintscript: echo "lint job"- name: testscript: echo "test job"
stages representing the expected tasks to be executed, the pipeline also has failStages representing the tasks to be executed when stages task execution fails. As follows:#branch namemain:#event namepull_request:# Array type means multiple pipelines- name: pr-check# Multiple tasks under the pipelinestages:- name: lintscript: echo "lint job"- name: testscript: echo "test job"# executed task when stages failfailStages:- name: lintscript: echo "notify to some chat group"


Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback