5

As part of our CI setup I am using AWS Beanstalk deployment plugin to deploy my application through Jenkins.

The issue is I am getting git commit hash in beanstalk application versions description. I want to have the commit message instead. I was able to output the message in Jenkins console output using the execute shell step. but for some reason I can't seem to transfer it to beanstalk. If I'm using eb deploy the description contains the commit message. I am getting a blank description with ${ENV,var="MESSAGE"} in beanstalk.

Would appreciate any help on how to have the commit message in beanstalk application versions.

pic1 pic2 pic3

1
  • export the COMMITMESSAGE and tick the "inject environment variables" in the first step?
    – Vorsprung
    Commented Jun 9, 2018 at 9:12

1 Answer 1

1

This gives a short commit message

git show -s $GIT_COMMIT --format="format:%s"

I'd probably put this in the "Excute shell" command box

Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.