ntakouris
ntakouris

Reputation: 958

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?)

Upvotes: 16

Views: 9670

Answers (1)

Vitalii Vitrenko
Vitalii Vitrenko

Reputation: 10395

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.

Upvotes: 27

Related Questions