File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ const resultMessage =
18
18
? `:white_check_mark: Success (${ passedTests } / ${ totalTests } Passed)`
19
19
: `:x: Failure (${ passedTests } / ${ totalTests } Passed)` ;
20
20
21
+ const pipelineName = process . env . GOCD_PIPELINE_NAME ;
22
+ const buildNumber = process . env . GOCD_PIPELINE_LABEL ;
23
+ const goCdServer = process . env . GOCD_SERVER ;
24
+
25
+ const reportUrl = `http://${ goCdServer } /go/files/${ pipelineName } /${ buildNumber } /sanity/1/sanity/test-results/mochawesome-report/sanity-report.html` ;
26
+
21
27
const slackMessage = {
22
- text : `
23
- *Dev11, CMA SDK Full Sanity*
24
- Result: ${ resultMessage }
25
- Failed Tests: ${ failedTests }
26
- View Report: <file://${ process . cwd ( ) } /mochawesome-report/sanity-report.html>
27
- ` ,
28
+ text : `Dev11, CMA SDK Full Sanity
29
+ *Result:* ${ resultMessage }
30
+ *Failed Tests:* ${ failedTests }
31
+ <${ reportUrl } |View Report>` ,
28
32
} ;
29
33
30
34
const slackWebhookUrl = process . env . SLACK_WEBHOOK_URL ;
You can’t perform that action at this time.
0 commit comments