File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
33env
4+ # if CI_STEP_STATUS is success, then output to slack, that `npm run build` was successful
45
6+ if [ " $CI_STEP_STATUS " = " success" ]; then
7+ MESSAGE=" Did a build without issues on \` $CI_REPO_NAME /$CI_COMMIT_BRANCH \` . (<$CI_COMMIT_URL |$CI_COMMIT_SHA >)"
8+
9+ curl -s -X POST -H " Content-Type: application/json" -d ' {
10+ "username": "' " $CI_COMMIT_AUTHOR " ' ",
11+ "icon_url": "' " $CI_COMMIT_AUTHOR_AVATAR " ' ",
12+ "attachments": [
13+ {
14+ "mrkdwn_in": ["text", "pretext"],
15+ "color": "#8A1C12",
16+ "text": "' " $MESSAGE " ' ",
17+ "pretext": "' " $MESSAGE " ' "
18+ }
19+ ]
20+ }' " $DEVELOPERS_SLACK_WEBHOOK "
21+ exit 0
22+ fi
523export BUILD_LOG=$( cat ../../adminforth/build.log)
624
725COMMIT_SHORT_SHA=$( echo $CI_COMMIT_SHA | cut -c1-8)
You can’t perform that action at this time.
0 commit comments