Skip to content

Commit 6e1847c

Browse files
Merge pull request #216 from contentstack/fix/slack-notification-envs
change envs for slack notification
2 parents ad05d1f + 39ddce0 commit 6e1847c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sanity-report-dev11.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ const resultMessage =
1818
? `:white_check_mark: Success (${passedTests} / ${totalTests} Passed)`
1919
: `:x: Failure (${passedTests} / ${totalTests} Passed)`;
2020

21-
const pipelineName = process.env.GOCD_PIPELINE_NAME;
22-
const buildNumber = process.env.GOCD_PIPELINE_LABEL;
21+
const pipelineName = process.env.GO_PIPELINE_NAME;
22+
const pipelineCounter = process.env.GO_PIPELINE_COUNTER;
2323
const goCdServer = process.env.GOCD_SERVER;
2424

25-
const reportUrl = `http://${goCdServer}/go/files/${pipelineName}/${buildNumber}/sanity/1/sanity/test-results/mochawesome-report/sanity-report.html`;
25+
const reportUrl = `http://${goCdServer}/go/files/${pipelineName}/${pipelineCounter}/sanity/1/sanity/test-results/mochawesome-report/sanity-report.html`;
2626

2727
const slackMessage = {
2828
text: `Dev11, CMA SDK Full Sanity

0 commit comments

Comments
 (0)