We are getting the following message "
<span>✖ Failed to send email to 123<a href="mailto:FLT@wfscorp.com" rel="noopener nofollow noreferrer" target="_blank">@gmail.com</a>. Check your configuration settings." when our build is failed. </span>
<span>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. </span>
Sample script used in our project.
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