Binary via Email notification

Pimprikar_ Siddharth March 8, 2021

Hi All,

I am working on building my embedded project on pipleline via the yml file.

If the build is successful I want to send the binary that was built via an email attachment to someone on the team.

How do I accomplish that

Thank you.

1 answer

3 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2021

Hi @Pimprikar_ Siddharth ,

Thank you for your question!

It's a good case for the email-notify pipe:

pipelines:
default:
- step:
name: Build and Test
script:
- some_build_logic_that_generate__build_zip_artifact
artifacts:
- build.zip
- step:
name: Send email
script:
- pipe: atlassian/email-notify:0.4.3
variables:
USERNAME: 'myemail@example.com'
PASSWORD: $PASSWORD
FROM: 'myemail@example.com'
TO: 'example@example.com'
HOST: 'smtp.gmail.com'
ATTACHMENTS: 'build.zip'

 

Cheers,
Oleksandr Kyrdan

Pimprikar_ Siddharth April 1, 2021

Hi @Oleksandr Kyrdan
I get this error while sending the email

Capture.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events