Two things here, one the whole body must be and HTML page to be sent as 
HTML, and you need the email ext plugin installed, check the documentation 
of the plugin for more details

https://plugins.jenkins.io/email-ext/
El lunes, 6 de febrero de 2023 a las 15:50:22 UTC+1, 
sunil.does...@gmail.com escribió:

> Can anyone tell me how to add a link to a file location in the email body?
> I have the below email body and I want to send the highlighted/bold 
> bit( <a href=C:\\abc\\xyz\\>) as a link in  the email body after every run, 
> so, that users can click on the link from email to be take to the location, 
> but it doesn't work. .:-
>
> emailext attachLog: true, attachmentsPattern: 'target',
>                 subject: "Jenkins Build Report 
>  ${currentBuild.currentResult}: Job ${env.JOB_NAME} build 
> ${env.BUILD_NUMBER}",
>                 body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} 
> \n Link: ${env.BUILD_URL} \n Drop folders can be found at
>                 *<a href=C:\\abc\\xyz\\>*",
>                   mimeType: 'text/html',
>                 to: testEmailGroup
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9df81503-fa0b-4fff-a9bb-9f9d09cfe0b8n%40googlegroups.com.

Reply via email to