Add BITBUCKET_COMMIT_MSG environment variable

Issue #13003 wontfix
Dmitry Obraztsov
created an issue

Add BITBUCKET_COMMIT_MSG environment variable to add info about changes in build.

Comments (6)

  1. Steven Vaccarella staff

    You should be able to get the information you need using git commands in your script, for example the following command will put the commit message of the last commit into an environment variable:

    - LAST_COMMIT_MESSAGE=`git log -1 --pretty=%B`

    Is this what you had in mind?

  2. Dmitry Obraztsov reporter

    I looked at some of the completed CI projects and all of them write commit messages (from previuos build commit to current commit) that are included in the build. It would be great to have built-in mechanics for this. For example: - Fix: BUG-7856 - Fix some bug... [commit_author] - Upd: BUG-4587 - Update mechanic of the feature [commit_author] - New: BUG-2345 - Add some feature... [commit_author] This build include 3 new commits. This info can be added to changelog automatically from scripts or send to customers with new build. I understand that it is not very easy to implement technically, so adding only last commit message environment variable would be useful feature.

  3. Matt Ryall staff

    Given the low demand for this feature in the time it has been open, I'm going to close this issue as Won't Fix. We are busy working on higher priority issues.

    As Steven describes above, there is an easy workaround using git to get the current commit message in your build script.

  4. Log in to comment