The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hook Into Post-Merge?

Ben
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 5, 2015

I need a version number stored in text file. I want to increment it whenever I update a branch on the server automatically. I need that version file alongside all the other files.

Is there anyway to do this? After brief research it seems I can do this with GIT hooks, but these are not available for use with bitbucket.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Daniel Wester
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 Champions.
March 5, 2015

Why not have your build server do this? Otherwise - use the git commit sha... You can't really do it with Git since things are not unique.

TAGS
AUG Leaders

Atlassian Community Events