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

email-notify : variable commit

Pierre KUHN June 29, 2023

Hello everyone, I'm starting to use the email-notify pipe. I am looking for variables to retrieve the text of commit in order to compose the text of the mail. Where can I find them? THANKS

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2023

@Pierre KUHN hi. Take a look at the get commit Bitbucket Cloud REST API.

Regards, Igor

Pierre KUHN June 30, 2023

Thanks Igor,

I would have to make this type of content: 

 

image: atlassian/default-image:3

pipelines:
  default:
    - step:
        name: 'Deployment to Production'
        deployment: production
        trigger: 'automatic'
        script:
          - pipe: atlassian/email-notify:0.8.0
            variables:
              USERNAME: $USERNAME
              PASSWORD: $PASSWORD
              FROM
              TO:
              HOST
              # PORT: '<string>' # Optional.
              # TLS: '<boolean>' # Optional.
              SUBJECT: $MESSAGE
              # BODY_PLAIN: '<string>' # Optional.
              # BODY_HTML: '<string>' # Optional.
              # ATTACHMENTS: '<string>' # Optional.
              DEBUG: 'true'

Suggest an answer

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

Atlassian Community Events