I am trying to send mail with cucumber report zip file attached with it.
My configuration settings:
image: cypress/base:20.9.0
pipelines:
default:
- step:
name: Cypress Tests
caches:
- node
script:
# install dependencies
- npm ci || true
# run Cypress tests in electron
- npx cypress run --spec cypress/e2e/**.feature && node ./cypress/cucumberReport.js
after-script:
- apt-get update && apt-get install -y zip
- zip -r cucumber-report.zip cypress/cucumber-report/
- STATUS="success"
- if [[ $BITBUCKET_EXIT_CODE -ne 0 ]]; then STATUS="FAILED" ; fi
- pipe: atlassian/email-notify:0.13.1
variables:
USERNAME: 'XXXXXXXXX@gmail.com'
PASSWORD: 'YYYYYYY'
FROM: 'XXXXXXXXX@gmail.com'
TO: 'YYYYYYYYYYY@gmail.com'
HOST: 'smtp.gmail.com'
SUBJECT: 'BUILD# ${BITBUCKET_BUILD_NUMBER} ${STATUS}:Bitbucket Pipe Notification for ${BITBUCKET_BRANCH}.'
ATTACHMENTS: 'cucumber-report.zip'
cucumber-report folder consist of 3 folders. Assets folder, features folder and index.html. I can able to zip the folder. But I can't able to send the mail. it was throwing an error mentioning "Check your configuration settings."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.