Good morning,
I want to modify the content of SUBJECT and BODY_PLAIN but I can't find to use the text of the committee, which values to use? ${MESSAGE}?
THANKS
Hi Pierre!
Are looking to get the commit message of the commit that triggered a Pipelines build?
If so, this is not exposed in a variable, but you can use a Git command in the script of your bitbucket-pipelines.yml file to get it.
Both of these commands will save the message of the commit in a variable named MESSAGE:
MESSAGE=$(git log -n 1 --pretty=format:%s $BITBUCKET_COMMIT)
MESSAGE=$(git show -s --format=%B $BITBUCKET_COMMIT)
You can use either one in your yml's script to get this value.
Please feel free to reach out if you have any questions.
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.