From 5525bd9f4ca130b85328ecd04481c7ba5f260790 Mon Sep 17 00:00:00 2001 From: Brian Watson Date: Thu, 1 Jul 2021 10:18:49 -0600 Subject: [PATCH] Add HTML link to periodic #canvas-axe-build alerts flag=none Test-plan: - trigger canvas axe build, new notification appears as expected Change-Id: Ib6c440c40434f87e1c55684cb756763e3c630f4a Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/268214 Tested-by: Service Cloud Jenkins Reviewed-by: Michael Hargiss QA-Review: Michael Hargiss Product-Review: Michael Hargiss --- Jenkinsfile.axe | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.axe b/Jenkinsfile.axe index 824d5094833..c826205db66 100644 --- a/Jenkinsfile.axe +++ b/Jenkinsfile.axe @@ -46,6 +46,10 @@ def getPatchsetTag() { (env.GERRIT_REFSPEC.contains('master')) ? "${configuration.buildRegistryPath()}:${env.GERRIT_BRANCH}" : imageTag.patchset() } +def getResultsHTMLUrl() { + return "${env.BUILD_URL}/artifact/results.html" +} + pipeline { agent { label 'canvas-docker' } options { @@ -123,7 +127,7 @@ pipeline { // Only alert on periodic jobs, not ones resulting from manual tests if (env.GERRIT_EVENT_TYPE != 'comment-added') { - slackSend channel: '#canvas-axe-build', message: "<$env.BUILD_URL/testReport|Latest Canvas Axe Selenium Results>" + slackSend channel: '#canvas-axe-build', message: "<$env.BUILD_URL/testReport|Latest Canvas Axe Selenium Results> - <${getResultsHTMLUrl()}|HTML>" } } }