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 <svc.cloudjenkins@instructure.com> Reviewed-by: Michael Hargiss <mhargiss@instructure.com> QA-Review: Michael Hargiss <mhargiss@instructure.com> Product-Review: Michael Hargiss <mhargiss@instructure.com>
This commit is contained in:
parent
3e463a1812
commit
5525bd9f4c
|
@ -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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue