Use triggers to automatically start a deployment pipeline based on application updates in your artifact repository or the execution of another pipeline. You can also schedule a pipeline to run at a specific day and time.

 

You can add the following types of triggers to a deployment pipeline.

GitHub  Launch the deployment pipeline automatically when a selected GitHub event is received.

Chef Habitat  Launch the deployment pipeline automatically if an application component is updated in the artifact repository.

Pipeline  Launch a deployment pipeline automatically once another build or deployment pipeline has been successfully executed. This allows you to automatically execute a sequence of pipelines with no manual intervention required.

Scheduled  Schedule a deployment pipeline to run at a specific day and time.


Click the Deploy tab. Clickto create a new deployment pipeline or click Edit on an existing pipeline.

 

Add a GitHub Trigger

You must have connected a GitHub account before you can select it as a trigger.


Drag a GitHub trigger from the sidebar and drop it on the start step. Select the GitHub event(s) that you would like to use to trigger a deployment pipeline, then click Save.

 

Push  This event is triggered when you push a commit to the master (main) branch or push a git tag.

Release  This event is triggered when you create a release via GitHub.

Deployment  This event is triggered when you create a deployment via GitHub.

 

The table below lists how ShuttleOps uses GitHub event data to populate pipeline parameters when it receives a particular event type.


Parameter TypePushReleaseDeployment
${params.git.branch}


${params.git.tag}


${params.git.sha}




Add a Chef Habitat Builder Trigger

You must add an application component to an Applications Components step before you can select it as a trigger.

Drag a Chef Habitat trigger from the sidebar and drop it on the start step. Select an application component, then click Save.

You can also add a Chef Habitat trigger in an Applications Components step. Just click on the application component card and a Chef Habitat trigger is automatically added to the start step.

Add a Pipeline Trigger

Drag a Pipeline trigger from the sidebar and drop it on the start step. Select the build or deployment pipeline to use as the trigger, then click Save.

Add a Scheduled Trigger

Drag a Scheduled trigger from the sidebar and drop it on the start step. Enter the day and time when you want to pipeline to execute. You can enter a specific date or a date relative to the current date and time. Click Save.