Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins slackSend pretty url

I am using the jenkins slack notification plugin inside a pipeline. Inside that pipeline I've got several

slackSend (color: colorCode, message: message)

I am also posting several links sometimes which show up fully extended on slack: http://ec2-......eu-west-2.compute.amazonaws.com

How should I format the message I send so that it acts as an anchor tag (having a name, which directs to url as soon as it's clicked?)

like image 404
ntakouris Avatar asked Aug 21 '17 10:08

ntakouris


1 Answers

You can use <url|name> syntax to do this.
For example <http://ec2-......eu-west-2.compute.amazonaws.com|ec2 url>
See Linking to URLs for more information.

like image 90
Vitalii Vitrenko Avatar answered Sep 18 '22 17:09

Vitalii Vitrenko