# Add Trigger

A trigger is a mechanism in a software application that indicates the completion of a particular process and then initiates the next process.

A CI-CD pipeline is a set of tasks that are executed in a specific order. Triggers play an important role in automating and enhancing the capabilities of these pipelines.

A pipeline trigger specifies when a pipeline should be run automatically. Many types of triggers are available such as Jenkins jobs, webhooks, CRON jobs, and even other pipelines. When you add a trigger to your pipeline, it means the pipeline will run whenever the triggering event occurs. It is worth noting that whether or not you have set up a pipeline trigger, you can always run your pipeline manually.

Follow the steps below to add a trigger:

1. Make sure you are editing the **Configuration stage** of the pipeline and click **Add Trigger** button as shown below.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FgmfnLYl02A7aPYn4jarv%2Fadd%20trigger%201.png?alt=media&#x26;token=624e5231-c9a3-4830-8036-7d507dc87d8f" alt=""><figcaption></figcaption></figure>

2\.  Select the **Type of trigger** and the **Artifact Constraints** from the drop-down menu. Artifacts are required for the trigger to execute. Only one of the artifacts needs to be present for the trigger to execute.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FbQxEjJltJbIu4KW2c8c6%2Fadd%20trigger%202.png?alt=media&#x26;token=72e5818b-e789-4f16-af8c-7923f1969f82" alt=""><figcaption></figcaption></figure>

**Available triggers are:**

* Artifactory&#x20;
* Concourse&#x20;
* CRON&#x20;
* Git&#x20;
* Helm chart&#x20;
* Jenkins&#x20;
* Nexus&#x20;
* Pipeline&#x20;
* Plugin&#x20;
* Pub/Sub&#x20;
* Travis&#x20;
* Webhook&#x20;
* Wercker&#x20;
* Docker Registry

3\.  Trigger Configuration options will appear based on the selected trigger. Here we have shown an example for the **Concourse** trigger.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FNTDZUpyeLmu4VyojnUXy%2Fadd%20trigger%203.png?alt=media&#x26;token=377bf634-01d3-46f7-89ca-2387b0a394bf" alt=""><figcaption></figcaption></figure>

4\.  Update the required details in the above screen and click **Save Changes** to add a trigger.
