Also, you will need to use a file:// link, not just the path. Be aware
though that unless everyone is running from the same C: drive mount, then
your link won't work at all for people clicking on it from their account.

On Mon, Feb 6, 2023 at 9:05 AM Ivan Fernandez Calvo <kuisathave...@gmail.com>
wrote:

> 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
> <https://groups.google.com/d/msgid/jenkinsci-users/9df81503-fa0b-4fff-a9bb-9f9d09cfe0b8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
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/CAPiUgVcbfqkAS72jFWZ%2B22NJ2OPcsBi2zU55_VxtiT7kWAUFnQ%40mail.gmail.com.

Reply via email to