Skip to main content

Build Behavior

The Notifications and General Settings tab allows you to configure the behavior of new builds.


Cancel existing build when starting new one

If this is enabled, any builds in flight for a given environment will be canceled when a new build gets queued.

Branch Deny Regex Pattern

If this is enabled, any pull requests where the base branch matches the given regular expression will NOT have a pull request environment created for it.

Deploy PRs with GitHub labels

If this is enabled, pull request environments will only be created for pull requests with the labels specified.

Auto-build on new commits

If this is enabled, new builds for commits will only be triggered on the selected repositories.

PR with Labels vs. Auto-build for new commits

There’s a distinction between how to control when new environments are created for new PRs vs. for new commits being pushed into an existing PR.

To prevent new PRs from creating new environments, use labels. Then when you create a new PR, it will not get a Shipyard environment unless it has the label.

To prevent new builds triggered by new pushed commits (on environments that already exist), use the auto-build on new commits.