We are getting the following message "
✖ Failed to send email to 123@gmail.com. Check your configuration settings." when our build is failed.
Where as we are getting the emails and requested details when the build is success. In both the scenarios the after script and email notify pipe were same.
after-script:
- HTML_FILE=$(find . -iname testResult*.html)
- if [[ BITBUCKET_EXIT_CODE -eq 0 ]]; then ALERT_TYPE="SUCCESS" ; else ALERT_TYPE="FAILED" ; fi
- pipe: atlassian/email-notify:0.8.0
variables:
USERNAME: $USERNAME
PASSWORD: $PASSWORD
FROM: 'abc@gmail.com'
TO: '123@gmail.com'
HOST: 'smtp.office365.com'
PORT: '###'
SUBJECT: '[Test Run] - ${ALERT_TYPE} - ${BITBUCKET_BRANCH} : Build #${BITBUCKET_BUILD_NUMBER}'
BODY_PLAIN: '[Test Automation Run Results] - ${BITBUCKET_BRANCH} - Build No:- ${BITBUCKET_BUILD_NUMBER}'
ATTACHMENTS: ${HTML_FILE}
Could you please help me what is the problem here ?
@Oleksandr Kyrdan - could you please share some insights on this? Please feel free to let me know if you need more details regarding the issue?
Thanks
Depstan T
Thank you for your question!
Looks like your ATTACHMENTS file are not correct/or not exist when your build failed.
Could you validate and check the testResult with `ls` or `cat` command.
Best regards,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.