Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

[v0.8.0] Customize the subject of the email

Pierre KUHN July 4, 2023

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

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 7, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events