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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deploy git tag / Bitbucket symbol after successful deployment

Hi, is it possible to tag the commit after a successful deployment with the release-id, or even to get a symbol like the build ok/fail symbols to idecate in the Bitbucket / git repo what has been deployed to what env. ? 

Using Bamboo 6.7.1 and Bitbucket 5.15.0

2 answers

1 accepted

0 votes
Answer accepted

As of Bamboo 6.7 it is possible to use the extended/new Repository Tag (previously known as VCS Tagging, which only worked for Subversion) to create a Git tag and push it to a remote repository.

If you configure the task after the deployment task(s), it will only execute if the preceding tasks succeed.

The task label is also automatically visible on the commit in the Bitbucket Server repository, and so is the build status when Bamboo has been integrated with Bitbucket Server via an application link.

Hey Steffen,

thanks for your quick response.

I saw the Repository Tag Task, but when i see my Pipeline i dont know if its fitting.

 

1. Test Branch on git Repo -> bamboo build (with branches) -> Branch Test Build ok -> Deploy to Test env. 

2. Prod Branch on git Repo -> bambo build (prod) -> Branch Prod Build ok -> deploy to Prod env.

 

what i want to see is in my bitbucket / git commit log, what commit is on which env.?

 

I hope that makes my request more clear :) 

Like Johnatan Lopes likes this

Ah, I see - if I get this correctly now, you could use the ${bamboo.deploy.environment} deployment variable as (part of) the Git tag name. Tags are visible in the commit log view, albeit admittedly not as rich and prominent as you might have envisioned for a build status symbol.

I'm not aware of the latter being readily available somehow, though IIRC the columns are integration points so that one could probably implement a more granular 'Environment' column alongside the existing 'Builds' column to automatically surface the information you are looking for in a more user friendly way (i.e. easier to identify and foregoing the tagging needs).

Can we do it with Jenkins and Bitbucket also ?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

685 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you