Hi,
We have this setting in yaml:
This is run when I create the branch to remote (we create them from jira tickets)
How can we do so that it is run when new commits are pushed to the feature branch not when it is created in remote.
Thanks,
Jani
branches:
feature/*:
- step:
name: Run when commits pushed to feature branch
trigger: automatic
services:
- docker
script:
I believe this setup is currently not supported.
I can't even think of a viable workaround apart from only pushing with commits. Maybe you could have a script inside a build that skips remaining steps when the diff to master branch is empty? That way it will trigger but not really spend heaps of build minutes?
Thanks, that is the way I do it. I followed these instructions: https://community.atlassian.com/t5/Bitbucket-questions/Avoid-running-pipeline-when-creating-new-branch-from-master/qaq-p/884010
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.