Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,771
Community Members
 
Community Events
176
Community Groups

Bamboo tag triggers multiple plan branches

Hello everyone,

I have a bamboo plan with several branches and a triggering tag configuration like this .*$ for all of them (=any tag triggers the execution). The moment I create a tag in the repository, the plan is executed for all branches instead of the branch where the commit with the assigned tag is. But the most curious thing about the case is that all branches use the same git branch, even having other branches assigned. I.E.

 

Plan for X with tag triggering .*$

  • Bamboo Branch DEV uses git repository X branch dev
  • Bamboo Branch Release uses git repository X branch release

 

Then I commit changes into repository X branch dev and after I create a tag and assign it to this commit. What happens is:

  • Bamboo Branch DEV is executed using git repository X branch dev (which is correct)
  • Bamboo Branch Release is executed git repository X branch dev (which I don't want to start, and additionally, is using a wrong source code branch)

 

Any idea how to prevent all the plan branches being executed when a tad is used in a particular git branch?

 

Thanks

 

 

 

 

1 answer

Hey @oscarmateu,

Welcome to Atlassian Community!

Can you confirm if you are following this workflow?

  1. Create branch
  2. Commit to the files
  3. Add a Tag
  4. Push Tag

If you are skipping #2, the tag may be shared between the "old branch" and the branch you had just created, making Bamboo trigger multiple builds that still refer to the last revision that the tag is linked to.

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Hi Eduardo,

yes, I do it exactly as you described.

 

Thanks

Hey @oscarmateu

If the Git revision is unique, Bamboo should consider the tag and only trigger that specific Plan branch as it will be only part of that revision. Could it be the case that the Plan Branch you are referring to is actually pointing to the "release" branch instead of the expected "dev" branch?

Please review the Plan branch setup by selecting the Plan Branch configuration >> Repositories and make sure that the selected Branch matches the desired Branch you want to trigger the build from.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events