... | ... | @@ -16,3 +16,36 @@ |
|
|
|
|
|
This page is heavily based on the GitLab Jenkins plugin [webpage](https://plugins.jenkins.io/slack) and Slack [administration page](https://slack.com/apps/A0F7VRFKN-jenkins-ci).
|
|
|
|
|
|
# 1. Slack plugin installation #
|
|
|
|
|
|
* In your Jenkins dashboard, click on **Manage Jenkins** from the left navigation.
|
|
|
* You need to be an administrator on the Jenkins service (currently only Lionel Gauthier and Raphael Defosseux are).
|
|
|
* Click on **Manage Plugins** and search for the **Slack Notification Plugin** in the **Available** tab. Make sure the version is **2.2**. Click the checkbox and install the plugin.
|
|
|
|
|
|
# 2. Enable Jenkins-CI in your Slack workspace #
|
|
|
|
|
|
* Go to your admin settings (again you need to be an administrator)
|
|
|
* For OAI Slack: https://openairinterface.slack.com/apps
|
|
|
* Search for Jenkins-CI, enable it and add a configuration
|
|
|
<img src="../images/slack-jenkins-ci-configuration.png" alt="" border=3>
|
|
|
* Click on the pen edition button
|
|
|
* Generate a token
|
|
|
<img src="../images/slack-token-generation.png" alt="" border=3>
|
|
|
* You can also personalize the default channel (**Post to Channel**) and the name (**Customize Name**)
|
|
|
* in our case `sandbox` and `OAI Jenkins`
|
|
|
<img src="../images/slack-personalization.png" alt="" border=3>
|
|
|
|
|
|
# 3. Jenkins Global configuration #
|
|
|
|
|
|
* Go back to your Jenkins configuration console.
|
|
|
* After it's installed, click on **Manage Jenkins** again in the left navigation, and then go to **Configure System**.
|
|
|
* Find the **Global Slack Notifier Settings** section and add the following values:
|
|
|
* Base URL: `https://openairinterface.slack.com/services/hooks/jenkins-ci/`
|
|
|
* Integration Token: `xxxxxxxxxx` from the Slack admin page above-mentioned.
|
|
|
* Channel: `sandbox`
|
|
|
<img src="../images/jenkins-slack-config.png" alt="" border=3>
|
|
|
|
|
|
|
|
|
This will be used as authentification. The channel can be changed within the jenkins job.
|
|
|
|
|
|
|