Hey Guys,
I am running a Jenkins job that deploys to aws beanstalk, I want in the description to have the the commit message and I am using ${GIT_COMMIT} env variable.
What I am getting is the commit hash and not the message.
I've installed the Git Tag Message plugin and enabled it in Additional Behaviours in source code management.
I am using the ${GIT_TAG_MESSAGE} in the aws deploy stage and it's not recognized.
I am using a freestyle project.
I've tried to capture the following commands:
git log -1 --oneline $GIT_COMMIT
git log -1 --pretty='%s' $GIT_COMMIT
But can't seem to capture it.
This is what I am getting:
[wp-az] $ /bin/sh -xe /tmp/jenkins6734038198136655184.sh
++ git log -1 --pretty=%s cdb858f3b84328184c6f83a2e79e8571a63d814c
+ Update README.md
I don't think we are taging our commits in github.
Would appreciate any assistance on how to deliever the commit message.
Thanks.