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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

email notification

Hi,

I have configured my repo with gmail smtp server details for sending email notifications on bitbucket pipeline build fialure/success. I have followed the procedure available in sample repo(email-notify) from bitbucket. But still am facing the configuration error.

1 answer

0 votes

@Sarath could you provide more information on how you configured a pipe execution and  failing logs?

 

Regards, Galyna

Hi Galyna,

Below is the code used in bitbucket.yml

image: maven:3.6.1
pipelines:
branches:
phase1:
- step:
caches:
- maven
name: Code Quality and Build
script:
- mvn -B verify
artifacts:
- target/**
- step:
name: Build and Push Docker Image to ECR
script:
- docker build -t ${BITBUCKET_REPO_SLUG} .
- pipe: atlassian/aws-ecr-push-image:1.1.2
variables:
IMAGE_NAME: ${BITBUCKET_REPO_SLUG}
TAGS: '${BITBUCKET_BUILD_NUMBER} latest'
- step:
script:
- pipe: atlassian/email-notify:0.3.12
variables:
USERNAME: 'mymail@gmail.com'
PASSWORD: $PASSWORD
FROM: 'mymail@gmail.com'
TO: 'reciever@gmail.com'
HOST: 'smtp.gmail.com'
PORT: 587

-----------------------------------------------------

Along with the above file, added the files from https://bitbucket.org/atlassian/email-notify/src/master. and the error received after running the pipeline is :

✖ Failed to send email to reciever@gmail.com Check your configuration settings.

@Galyna Zholtkevych ,

It got worked after providing the authentication.

Thanks,

587 is not working for me as well.

@zh_focus check up with your smtp port on server. You can also discover the problem running pipe with DEBUG: 'true' variable. You can also share the latest log with us.

Regards, Galyna

@Galyna Zholtkevych  It seems like my google smtp server is not configurated well.it can work as I used another smtp server.

email-setting.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,323 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you