Bamboo build on new git tag

Jeff Behl
Contributor
September 2, 2013

We're using Stash and Bamboo. I'd like to have a build triggered on a tag whenever a tag is added to a specific branch. It seems this feature request is something along those lines, though not precisely:

https://jira.atlassian.com/browse/BAM-13618

Since this doesn't seem to be possible currently out of the box, what would be the best way to accomplish this, even if it involved some scripting?

Thanks

16 answers

1 accepted

10 votes
Answer accepted
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2013

Hi Jeff,

Unfortunately Bamboo doesn't currently have support for anything other than branches. For now you will have to create branches to match your tags. There really isn't anything else you can do.

Whether that's in a client-side script that pushes new branches to Stash, or whether that's a plugin in Stash that does it automatically when somone pushes a tag that's up to you. I'm happy to help if you get stuck on this part.

If you're worried/against the idea of putting branches in your normal repository the slight variation would be to mirror your repository and only create the branches in the fork. That means that normal users won't be aware of those extra branches being created, but bamboo can build from them.

I hope that helps.

Charles

PS. While this may seem unrelated, you might want to vote on the following as well. Depending on how this is implemented, if Bamboo supports all refs then that should encompass tags as well:

https://jira.atlassian.com/browse/BAM-11205

Jeff Behl
Contributor
September 11, 2013

Thanks for the information Charles. One followup question: you say "Bamboo doesn't currently have support for anything other than branches." However, you can specify a tag when specifying a new branch in Bamboo, as mentioned in the dialogue "The name of the branch (or tag) containing source code". This being the case, I support I could script up something that adds a new "branch", but is actually basing it on a tag, correct?

Pardon if any of the above doesn't make sense. I'm relatively new to git/stash, and bamboo.

Like Georg Karpala likes this
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2013

Hi Jeff,

Thanks for the correction. You're quite right that you can build against a tag in a new repository in a plan (which is where that text comes from).

However, the problem lies specfically with "branch builds", which are unfortunately exactly that. You can't automatically detect _new_ tags (or any ref - which can be used for things like pull requests).

So for now, if you want Bamboo to automatically create a 'branch' build against your tags, you will need some form of script.

Cheers,

Charles

Ulrik Hald
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2014

This question is about a year old new, so I would like to know if there are any improvements when it comes to handling git tags in Bamboo? Our CI model is built around git tags and thus I need to auto-trigger a build in Bamboo whenever I push an annotated tag to my repository (which is hosted in Stash). Similarly, once a build is triggered this way, I would like for Bamboo to point out that a new tag was the reason for the build. If the workaround "For now you will have to create branches to match your tags." still applies, I would like to have some guidance in how to manage this automatically inside Stash (eg. using plugin), if possible.

Rowan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2014

+1 can we get an update on this? Branches and tags are just refs in git, so it seems like it should be reasonably easy to trigger on new tags...

Mart Klanberg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 8, 2015

+1 Relevant even 6 months later.

AlexandruB
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2015

+1 Is there any new information about this ?

zhouhuab NA
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 12, 2015

+1 trigger on tag is really important

Tim Foster
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2016

+1 would like this feature as well

 

Ondrej Medek February 18, 2016

+1 too

Ronny Weil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2016

+1

Mark Gabriel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 29, 2016

+1

alex_sherwin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2016

+1

h17liner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2016

+1

Francois Montmasson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 6, 2016

+1

Ilya Mazya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 24, 2016

+1

David Schlesinger June 28, 2016

+1

Martin Strycek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 11, 2016

+1

 

Dion Gonano
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 1, 2016

+1

Matthew Frey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 2, 2016

+1


Supporting this would make npm version driven builds much cleaner.

Grzegorz Śliwiński
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 12, 2016

+1

Rita_Garcia December 1, 2017

We use tags to help denote the latest version to use. It would be nice to have this tag used as well for deployments.

+1

IT ADVITOS February 1, 2018

+1

Jack Cheung
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2018

+1 We also need tag for QA and deployment

dsanchezpillot February 14, 2018

+1

Yagnesh_Mistry
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2018

+1

Shubham Ranjan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 3, 2018

+1

Matthew Pearsall
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2018

+1

zaf.dalvie
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2018

+1

jjaenike January 23, 2019

+1

Александр Колпаков
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2019

+1

Like Nick Ayala likes this
schow-lmi3d September 24, 2019

+2

Aaron Williams December 30, 2019

+1 omg 6 years later

5 votes
ulutasriza
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2018

Its almost 6 years, still no solution ??

conan_chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2018

+1

3 votes
shaynen
Contributor
January 8, 2020

2020 and this fundamental show stopper of a feature still isn't in! 

This is a product that prevents you from using *standard best practices*, and that means Bamboo isn't a functional product yet.

+1

3 votes
Bill Wang
Contributor
August 14, 2018

Ask for votes, yes, we voted, it is already 166 votes. 

Surprise after 6 years, we still don't get this basic feature assigned. 

https://jira.atlassian.com/browse/BAM-11205

Ole Koeckemann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 20, 2020

so sad

3 votes
Jason Kinnear May 9, 2018

+1

1 vote
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2018

Hi everyone,

Thanks for your interest in this issue. We fully understand that many of you are dependent on this functionality.

If you're interested in Bamboo support for building forks of repositories please vote on https://jira.atlassian.com/browse/BAM-11205

If you're interested in Bamboo support for triggering builds after tag has been pushed to repository please vote on https://jira.atlassian.com/browse/BAM-17800

 

We typically review highly voted suggestions every 6 months, at which point we consider whether we want to include it on our roadmap.

 

Cheers,

Krystian Brazulewicz

Bamboo Team

1 vote
Gustavo Muniz do Carmo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 27, 2018

+1

1 vote
Andres
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 24, 2018

+1

1 vote
John Gill April 14, 2018

+1

Five years later and still no solution...

1 vote
Orion IT Team March 20, 2018

+1

0 votes
Levente Szabo _Midori_
Atlassian Partner
March 26, 2021

While Atlassian delivers this, there is an alternative way you can try. Create an automation rule using the Automation for Jira and the Better DevOps Automation for Jira apps.

Use the Tag Created trigger and one of the "starting a Bamboo build..." recipes.

The trigger also sets a smart value for the tag that you can use in your automation action -  {{devops.tag}}

(Please note that Better DevOps Automation is a paid and supported app, and I'm part of the team developing it.)

0 votes
stsivin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 21, 2018

+1

0 votes
roman_breuer_hta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2018

+1

0 votes
Vaisakh PS August 6, 2018

+1 . why atlassian is not ready to implement this functionality?

0 votes
Xavi Pedrals
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2018

+1

0 votes
diegomarcov-uns
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 16, 2018

+1

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events