My project requires enabling CI/CD pipelines globally for the repository. However, there are specific scenarios where we need to push changes, for example, during a git push --mirror, without triggering pipelines.
Hi.
We have set up Pipelines so they only run when a PR is open, and you need a PR to push to `develop` or `master`.
Maybe you could do that, without branch protections, so a regular push to a branch would not trigger a pipeline?
Hi Nagaraja,
We cannot detect if you pushed with the --mirror flag or not.
The only two ways to not trigger a Pipelines build even when there is a matching definition in the repo's bitbucket-pipelines.yml file are:
1. If you add the text [skip ci] or [ci skip] to the commit message of the last commit of the branch you push.
2. If a push involves more than five tags or branches. This is to prevent accidental triggering of Pipelines builds.
Kind regards,Theodora
It looks like you're new here. Sign in or register to get started.