The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to add an attachment. No such file *

elaine-g
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2022

Hello, we have a bitbucket-pipelines.yml file with following step to test by e2e our application, and looks like this:

 


 

after-script:
- ALERT_TYPE="success"
- if [[ $BITBUCKET_EXIT_CODE -ne 0 ]]; then ALERT_TYPE="error" ; fi
- pipe: atlassian/email-notify:0.5.0
variables:
USERNAME: $BITBUCKET_EMAIL_NOTIFICATION
PORT: 587
PASSWORD: $BITBUCKET_EMAIL_NOTIFICATION_PASSWORD
FROM: '...'
TO: '...'
HOST: '...'
SUBJECT: '${ALERT_TYPE}:Bitbucket Pipe Notification for ${BITBUCKET_BRANCH}'
DEBUG: 'true'
ATTACHMENTS: cypress/videos/**/*

Like can we see we want to attach videos files to the email notification, but we still get the same message response "Failed to add an attachment. No such file *", everything works fine only when we use following absolute file name like this
"cypress/videos/1-payment-flow/basic_payment_flow.spec.js.mp4",
how we can attach dynamic files name generated by cypress?
thanks, best regards.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events