- Create a Slack User in Jenkins
- Admin user -> Manager Jenkins -> Manage Users -> Create User
- Create an Authentication Token for SlackUser
- Login to Jenkins as SlackUser -> Click on the user and
Configure
- Login to Jenkins as SlackUser -> Click on the user and
- In the configuration page, Go to the
API TokenSection and AddNew Token
- Once clicked on the Generate button you would be presented with the API token as shown below.
-
Save the token in .env variable
JENKINS_PASSWORD -
Configure Global Security and Project-Based Matrix
- Logout from the BuildUser and Log back in as Admin user
- Manage Jenkins -> Configure Global Security -> Authorization -> Click on Add User or Group
- Logout from the BuildUser and Log back in as Admin user
- Generate uuid4 id (https://www.uuidgenerator.net/) and save in env variable
JENKINS_TOKEN
- Configure API token
- In Job Configuration page, Below the
Build Triggerssection- Select the
Trigger builds remotelyand Enter yourJENKINS_TOKENpreviously created inAuthentication Tokenas shown below.
- Select the
- In Job Configuration page, Below the





