Publishing Specific Git Tags

Hi all,

A noob here trying to find a simple solution to publish my code. I have my code in a Git Repo (Bitbucket) and have three identical environments; dev, test and prod for my application. I've been able to run builds on Jenkins (with Cloudbees) as someone from Bitbucket support recommended, but I still have a couple of questions.

  1. How do I run builds based on specific Git tags? I have a release tag nomenclature defined in my process, which would enable me to do rollbacks if necessary, but don't know how to do the builds / deploys.
  2. Once the build is complete, what is the best way to actually transfer the code to the application server? I'm not married to Jenkins or any other specific app or platform, so any suggestion would be fine.

I've searched Google, this and other forums, but have only been able to get fragmented information, and short of paying consultants $2k per day I can't figure this solution out. Any help would be greatly appreciated.

1 answer

So I've found a way to transfer the code to my web server as well. Now I just need to know how to use code from specific tags for the build / deploy process.

Example: A tag "v2.0" is assigned to the repository after a commit. All files related to v2.0. are then deployed to the production (or any other) server. A bug is found in code that necessitates a rollback. Tag v1.5 is deployed to production to rollback the v2.0 release.

This is probably pretty simple once one figures it out. Suprised that no one on this forum knows - or is willing to share - how to do this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,907 views 7 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you