A Shashank
A Shashank

Reputation: 11

Jenkins Pipeline script -convert URL notified by slack to a clickable URL

I am trying to send a slack failure notification if the Jenkins build is a failure.

However, whenever the notification comes in slack, it is not a clickable URL. It comes as http://${MASTER_NODE}:1234/job/abc/2/

I am not able to make the master node of Jenkins dynamic, as a result, it just prints as MASTER_NODE and not converting to a clickable URL.

Any possible solution for this?

Upvotes: 1

Views: 1081

Answers (1)

Hemanth Kalthireddy
Hemanth Kalthireddy

Reputation: 126

Instead of using this http://${MASTER_NODE}:1234/job/abc/2/,

$BUILD_URL in custom message

click here to see image

Upvotes: 2

Related Questions