I'd like to set up a pre-deployment gate with the following logic
- If the branch (embedded in the artifact names, i.e. 1.2.4-myBranch) matches the currently deployed branch (to the stage in question) allow the release to deploy automatically
- If it doesn't match, require a manual override before the release is deployed
The reason for this is we have multiple test environments where generally we only want to allow a release from the same branch to overwrite the deployment but obviously once we're done with a particular phase of testing we'd want to change the deployed branch.
I can't see any obvious way to do this, is it possible?



