I am sending this path to Attachments variable under email-notify:
TO: 'myemail@example.com'
SUBJECT: 'Bitbucket Pipe Notification'
+ ATTACHMENTS: 'TestResults/TestReports/*.html'
However it gives this error.

I want to know if we can use glob pattern here or how can we select latest file from Downloads folder of bitbucket repository and send its name here.