Hi
I am getting "Failed to add an attachment. No such file index.html" error
This is my bitbucket-pipeline.yml file code
custom: # Pipelines that can only be triggered manually
QA2: # The name that is displayed in the list in the Bitbucket Cloud GUI
- step:
image: openjdk:8
caches:
- gradle
size: 2x # double resources available for this step to 8G
script:
- cd config/geb
- ./gradlew -S clean browerstackchTest
- echo "Manual trigger for QA2!"
after-script: # on failed builds send notifications to e-mail lists in addition to the committer
- if [ "${BITBUCKET_EXIT_CODE}" == "0" ]; then exit 0; else echo "gradle build step failed"; fi
- pipe: atlassian/email-notify:0.3.11
variables:
<<: *email-notify-config
TO: 'email@email.com'
SUBJECT: "Test result"
BODY_PLAIN: |
Please find the attached test result report to the email.
ATTACHMENTS: 'index.html'
I see it recognizes the report path
<span>* What went wrong:</span><span>Execution failed for task ':browserstackchromeTest'.</span><span>> There were failing tests. See the report at: file:///opt/atlassian/pipelines/agent/build/config/geb/build/reports/browserstackchromeTest/tests/index.html</span>