Devopsgol - Jenkins is an automation and continuous integration tool widely used in development. Jenkins is one of the tools utilized by DevOps teams to automatically build, test, and deploy their applications repeatedly and consistently.
With Jenkins, DevOps teams can regularly integrate code and quickly trace issues, ensuring that changes made do not affect the performance of the applications.
Slack is one of the applications used for team communication and alerting.
STEP 1 # Install Plugin Slack in Jenkins
Install the Slack Notification plugin on Jenkins.
STEP 2 # Create Acount Slack And Channel
Create a Slack account: https://slack.com/
Create a channel for Jenkins alerts.
Choose "Public" for the Slack channel.
Select "Skip for now."
The channel named "notification-jenkins" has been successfully created.
Configure Jenkins integration with Slack.
Search for the Jenkins CI app.
Select "Add to Slack."
Choose the channel created with the name "notification-channel."
Copy and paste the Slack token into Jenkins to establish a proper connection.
STEP 3 # Create Credentials Slack in Jenkins
Create Slack credentials in Jenkins.
Configure Slack notifications in the Jenkins system.
Navigate to Manage Jenkins → System → Slack.
Select "Workspace" as "devopsgol."
Choose "Channel" as "notification-jenkins."
The Slack workspace is the workspace in Slack that can connect their apps and services.
The Slack channel is the location/channel already created as groups to store alerts.
STEP 4 # Add Job Pipelines in Jenkins
Create a project to test Slack notifications.in Jenkins
In the "Post-build Actions" section, choose "Slack Notifications."
Select "Build Start," "Build Success," "Build Failed," and save to apply.
Choose "Running" to execute the job.
Jenkins job notifications have successfully entered the Slack alert notifications.
No comments:
Post a Comment