What variable is the commit message

Brett Nottingham December 5, 2013

After a build completes from a git repo, there is a code commit message value in the build result summary. This is just the commit message in the git commit/push. I want to pass that value to a script, but I don't see in the global variable list which variable to use. Anyone know what specifically it is?

1 answer

1 accepted

2 votes
Answer accepted
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2013

Commit message is not available as a variable, only commit sha is:

${bamboo.planRepository.revision}

You can extract commit message with git like this:

git log -1 --format=%s%n%b

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events