You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,24 @@ The directory structure is dictated by [OpenShift Jenkins S2I image](https://doc
18
18
19
19
To Integrate with slack follow the steps at https://github.com/jenkinsci/slack-plugin. Particularly, create a webhook at https://customteamname.slack.com/services/new/jenkins-ci. After the webhook setup is complete at slack, record and add the below environmental variables. You can retrieve the values on your [slack dashboard](https://my.slack.com/services/new/jenkins-ci). Make sure you are logged into the correct team.
20
20
1. The base url as `SLACK_BASE_URL`
21
-
2. The slack token as `SLACK_TOKEN`
22
-
3. The slack room you selected as the default slack channel as `SLACK_ROOM`
23
-
4. optionally, a jenkins credential can be used for the token and referenced by a custom id at `SLACK_TOKEN_CREDENTIAL_ID`. This takes precedences over the `SLACK_TOKEN`
21
+
2. The slack room you selected as the default slack channel as `SLACK_ROOM`
22
+
3. A jenkins credential needs to be created. Use the id of the credential for the environmental variable `SLACK_TOKEN_CREDENTIAL_ID`. When creating this credential in OpenShift, create a secret that syncs withe jenkins and uses the key secrettext. The namespace will automatically be prepended to the credential name. For example, if you create a secret named `slack-token` in the namespace `jenkins` then this variable would be `slack-token` and jenkins will look for the sync'd credential `jenkins-slack-token`.
23
+
4. Optionally, you can add your slack team name with the variable `SLACK_TEAM`
24
+
25
+
Here is an example of the slack token credential secret created in OpenShift
0 commit comments