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
It looks like you're new here. Sign in or register to get started.