The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline runs when remote branch is created

Jani Ruohomaa
March 31, 2020

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:

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
mkleint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2020

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?

TAGS
AUG Leaders

Atlassian Community Events