Gitlab Webhook
**Usage scenario:**Pipelining is automatically triggered when code changes occur, such as code commit and code merge
Trigger mode
Commit Push Trigger when the Hook code is submitted
Tag Push Hook Trigger when the tagged code is submitted Merge Request Hook 3. Merge Request Hook is triggered when code is merged Merge Request Accept Hook 4. Merge Request Accept Hook is triggered when codes are merged
parameter
Different triggering modes have different parameters Code base: A public parameter that is a repository to listen for code events
Commit Push Hook
Branch name: The branch where the code event occurred
Exclude the following target branches: Excluded branches do not trigger pipelined even if they have code events
Listen to the following path: If code changes occur in this path, the pipeline is triggered
Exclude the following paths: pipelining is not triggered if code changes occur under this path
Include the following people: Pipelined if the author of the code change is this person
Exclude the following people: Pipelining is not triggered if the author of the code change is this person
Contain the following Commit Message: If the commit message of the code change contains this message, the pipeline is triggered
Exclude the following Commit Message: If the commit message of the code change contains this message, the pipeline is not triggered
Tag Push Hook
Branch name: The branch where the code event occurred
Listen for the following tags: If the submitted code contains the following tags, the pipeline is triggered
Exclude the following tags: If the submitted code contains the following tags, the pipeline is not triggered
Merge Request Hook
Branch name: The branch where the merge event occurs. If the pipeline is triggered when the dev branch is merged into the master branch, enter the branch name as master
Exclude the following target branches: If the target branches of the merge event are the following, the pipeline is not triggered
Monitor the following source branches: If the source branch of the merge event is the following branch, the pipeline is triggered
Exclude the following source branches: If the source branches of the merge event are the following, the pipeline is not triggered
Monitor the following paths: The pipeline is triggered when the target branch of the merge event contains code changes in the following paths
Exclude the following paths: If the merge event target branch contains code changes to the following paths, the pipeline is not triggered
Include the following personnel: The pipeline is triggered when code changes of the following personnel are included in the target branch of the merge event
Exclude the following: If the merge event target branch contains code changes for the following people, the pipeline will not be triggered
Contains the following Commit Message: If the target branch of the merge event contains the following commit information, the pipeline is triggered
Exclude the following Commit Message: If the target branch of the merge event contains the following commit information, the pipeline is not triggered
Merge Request Accept Hook
Branch name: merge accept the branch where the event occurs. For example, if master receives the merge request from the dev branch, enter the branch name as master
Exclude the following target branches: If the target branches of the merge accept event are the following, the pipeline is not triggered
Listen to the following source branches: If the source branch of the merge accept event is the following branch, the pipeline is triggered
Exclude the following source branches: If the source branch of the merge accept event is the following, the pipeline is not triggered
Listen for the following paths: merge accept the target branch contains code changes in the following paths, and the pipeline is triggered
Exclude the following paths: If the merge accept event target branch contains code changes in the following paths, the pipeline is not triggered
The following personnel are included: The pipeline is triggered when the merge accept event target branch contains code changes of the following personnel
Exclude the following people: If the merge accept event target branch contains code changes of the following people, the pipeline is not triggered
Last updated