Attachment filepath does not support token reference

14 views
Skip to first unread message

Dhatchanamoorthy Ramasamy

unread,
Aug 31, 2016, 11:59:11 AM8/31/16
to Jenkins Users
I am trying to send the failure screenshot as the email attachment.

The ${Build_NUmber} variable not working in attachment text box.

can you please let me know what variable I need to use to get the build number

Rachel

unread,
Sep 2, 2016, 1:42:01 PM9/2/16
to Jenkins Users
Hi Dhatchanamoorthy Ramasamy,

I suppose you're using Email-Ext Plugin, because default Email Notification Plugin doesn't include attachment option.

I've executed a job creating a file ${BUILD_NUMBER}.txt and I've received it by email when writing
${BUILD_NUMBER}.txt in attachment textbox.

Please, ensure these issues:
  • Workspace is base directory in attachment option. Ensure your file exists in that location.
  • Check Triggers in Advaced Settings, because "Failure - Any" is default trigger. Maybe you're job isn't failing and it doesn't send the email.
  • Check mispelling. ${Build_NUmber} string works in Unix, but I don't know if it's the case of a Windows system.
I hope you get it.

Best regards,
Rachel


Reply all
Reply to author
Forward
0 new messages