Trigger, a key term used, to represent a step to automate deployment or initiate a pipeline build. As seen in the table below taken from CD.Foundation’s mapping of common terminologies, trigger is used by almost all CI/CD tools available.
Likewise in harness are used in deployments to automate the CI/CD pipeline based on various git events namely PUSH, CREATE & ALL, which thereby can be used to trigger a pipeline automatically based on these events.
Triggers enable event driven CI/CD and support the practice of every commit building and/or deploying to a target environment.
Pipelines could be triggered in response to Git events automatically. For example, when a pull request or push event occurs on a Git repo, a CI or CD Pipeline can execute.
The triggers work on a certain predefined conditions, which help to form the overall set of criteria to trigger a Pipeline based on changes in a given source. In harness we have categorised the conditions to be based on 3 git events:
Which are further attributed by
For example:
For configuring the GitHub web-hooks harness uses events API to choose which events will send the payloads.
Here’s an example of payloads conditions described in Harness for triggers:
The following resources could be used to get more information on how trigger Pipelines in response to Git events that match specific payload conditions you set up in the Harness Trigger, also to customize the trigger for Github payload conditions:
Feel free to ask questions at community.harness.io or join community slack to chat with our engineers in product-specific channels like: