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

How does Gitflow releases work with Deployment projects?

Ron Chan
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.
April 22, 2014

So our suite of versions are Bamboo (5.3), JIRA (6.1.1), Stash (2.8.2). We are trying to leverage the intended workflow of these tools and apply them to our build/release workflow.

We have run into an issue trying to implement this:
http://blogs.atlassian.com/2013/05/version-management-jira-bamboo/

Our gitflow workflow goes something like:
- Create JIRA ticket (e.g. PROJ-123)
- Create feature branch from ticket
- Push changes (with "PROJ-123" in commit message)
- Merge into development branch
- Create release branch from development branch
- Create deployment release from release branch build
- Deploy release to Staging

So at this point (based on Atlassian documentation), I'm expecting the deployment status panel in PROJ-123 to contain the deployed details. But it does not.

Now I know this, if I were to push a change (with "PROJ-123" in commit message) into that release branch, I would get the result I expect in PROJ-123.

But the thing is, I'm already for a release after branching release from development -- I have no other changes to make at that point.

Were these tools not made to utilize the gitflow release workflow? Or am I missing something here???

1 answer

1 accepted

0 votes
Answer accepted
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2014

Here's the problem: how Bamboo knows that PROJ-123 should be in while say PROJX-980 should be not ? All Bamboo knows about git branch is that it's a tip with certain parents. How far back in time Bamboo should look to collect changes is completely unknown. I admit Bamboo should be smarter in that regard but the best we can do is to try to find the point when you created the branch. In which case we would still not find PROJ-123 which happened before that.

The possible solution would be to have sth like 'custom range builds', I've opened an improvement request here: https://jira.atlassian.com/browse/BAM-14525. Please vote on it.

Ron Chan
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.
April 24, 2014

Since that is the intended behavior/workflow of Bamboo, then it doesn't align with the gitflow release model as advertised.

For the time being, it seems our workaround will have to be -
Create deployable release based on feature branch UNLESS there are new commits in the release branch, in which case, use the release branch...otherwise deployment information will not propagate to JIRA's deployment panel.

This would certainly work but feels a little clunky and not a workflow we can standardize for our dev teams.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events