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.
@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.1pipelines:branches:phase1:- step:caches:- mavenname: Code Quality and Buildscript:- mvn -B verifyartifacts:- target/**- step:name: Build and Push Docker Image to ECRscript:- docker build -t ${BITBUCKET_REPO_SLUG} .- pipe: atlassian/aws-ecr-push-image:1.1.2variables:IMAGE_NAME: ${BITBUCKET_REPO_SLUG}TAGS: '${BITBUCKET_BUILD_NUMBER} latest'- step:script:- pipe: atlassian/email-notify:0.3.12variables:USERNAME: 'mymail@gmail.com'PASSWORD: $PASSWORDFROM: '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 :
<span>✖ Failed to send email to reciever@gmail.com Check your configuration settings.</span>
@Halyna Berezovska ,
It got worked after providing the authentication.
Thanks,
587 is not working for me as well.
It looks like you're new here. Sign in or register to get started.