Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
aafe2889
Commit
aafe2889
authored
Mar 05, 2017
by
Zeger-Jan van de Weg
Committed by
Z.J. van de Weg
May 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove notify slack job
parent
ec9f6180
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
.gitlab-ci.yml
.gitlab-ci.yml
+0
-16
scripts/notify_slack.sh
scripts/notify_slack.sh
+0
-13
No files found.
.gitlab-ci.yml
View file @
aafe2889
...
@@ -420,22 +420,6 @@ trigger_docs:
...
@@ -420,22 +420,6 @@ trigger_docs:
-
master@gitlab-org/gitlab-ce
-
master@gitlab-org/gitlab-ce
-
master@gitlab-org/gitlab-ee
-
master@gitlab-org/gitlab-ee
# Notify slack in the end
notify:slack:
stage
:
post-test
<<
:
*dedicated-runner
variables
:
SETUP_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
script
:
-
./scripts/notify_slack.sh "#development" "Build on \`$CI_COMMIT_REF_NAME\` failed! Commit \`$(git log -1 --oneline)\` See <https://gitlab.com/gitlab-org/$(basename "$PWD")/commit/"$CI_COMMIT_SHA"/pipelines>"
when
:
on_failure
only
:
-
master@gitlab-org/gitlab-ce
-
tags@gitlab-org/gitlab-ce
-
master@gitlab-org/gitlab-ee
-
tags@gitlab-org/gitlab-ee
pages
:
pages
:
before_script
:
[]
before_script
:
[]
stage
:
pages
stage
:
pages
...
...
scripts/notify_slack.sh
deleted
100755 → 0
View file @
ec9f6180
#!/bin/sh
# Sends Slack notification ERROR_MSG to CHANNEL
# An env. variable CI_SLACK_WEBHOOK_URL needs to be set.
CHANNEL
=
$1
ERROR_MSG
=
$2
if
[
-z
"
$CHANNEL
"
]
||
[
-z
"
$ERROR_MSG
"
]
||
[
-z
"
$CI_SLACK_WEBHOOK_URL
"
]
;
then
echo
"Missing argument(s) - Use:
$0
channel message"
echo
"and set CI_SLACK_WEBHOOK_URL environment variable."
else
curl
-X
POST
--data-urlencode
'payload={"channel": "'
"
$CHANNEL
"
'", "username": "gitlab-ci", "text": "'
"
$ERROR_MSG
"
'", "icon_emoji": ":gitlab:"}'
"
$CI_SLACK_WEBHOOK_URL
"
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment