Hyperlinks ​
Hyperlinks allows you to attach relevant URLs to your messages, providing direct access to builds, logs, or any other resource your team might need. This ensures that your notifications are not only informative but also actionable, enabling your team to quickly navigate to the necessary tools and information.
DEFAULTS
- hook:
end
- condition:
passOrFail
Syntax ​
json
{
"name": "hyperlinks",
"condition": "passOrFail",
"inputs": {
"links": [
{
"text": "Build Logs",
"url": "<build-logs-url>"
}
]
}
}
links
(object[]) - list of link objects.text
(string) - text to display.url
(string|function) - custom url to link the above text.condition?
(condition) - condition to include this link.
Reports ​
Teams ​
Slack ​
Examples ​
Sample partial config file.
js
{
"targets": [
{
"name": "teams",
"inputs": {
"url": "<teams-incoming-webhook-url>"
},
"extensions": [
{
"name": "hyperlinks",
"inputs": {
"links": [
{
"text": "Build Logs",
"url": "<build-logs-url>"
},
{
"text": "Video",
"url": "<video-url>",
"condition": "fail"
},
{
"text": "Video",
"url": async ({ result }) => { return '<some-url>' }
}
]
}
}
]
}
],
"results": [
{
"type": "testng",
"files": [
"path/to/testng-results.xml"
]
}
]
}