You can limit your builds to the deploy
branch via the the VCS Root configuration screen.
- Clear the Default branch field.
- Add the
refs/heads/deploy
branch to the Branch specification field.
In order to integrate this change with a build template, you can parameterize the Branch specification as %git.branch.specification%
.
- For branch builds, the value is set to
refs/heads/*
- For deploy builds, the value is set to
refs/heads/deploy