Search code examples
jenkinsjenkins-pluginsjenkins-pipelineslackslack-api

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


Solution

  • 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.