Breaking

HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS

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.


HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS




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.

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


STEP 2 # Create Acount Slack And Channel

Create a Slack account: https://slack.com/

Create a channel for Jenkins alerts.

HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS

Choose "Public" for the Slack channel.

HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS

Select "Skip for now."

HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS


The channel named "notification-jenkins" has been successfully created.

HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS

Configure Jenkins integration with Slack.

HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS


Search for the Jenkins CI app.

HOW TO INTEGRATION OF SLACK NOTIFICATIONS WITH JENKINS


Select "Add to Slack."

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


Choose the channel created with the name "notification-channel."

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


Copy and paste the Slack token into Jenkins to establish a proper connection.

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS

STEP 3 # Create Credentials Slack in Jenkins

Create Slack credentials in Jenkins.

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


Configure Slack notifications in the Jenkins system.

Navigate to Manage Jenkins → System → Slack.

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


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.

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


STEP 4 # Add Job Pipelines in Jenkins

Create a project to test Slack notifications.in Jenkins 

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


In the "Post-build Actions" section, choose "Slack Notifications."


HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


Select "Build Start," "Build Success," "Build Failed," and save to apply.

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS

Choose "Running" to execute the job.

HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


Jenkins job notifications have successfully entered the Slack alert notifications.


HOW-TO-INTEGRATION-OF-SLACK-NOTIFICATIONS-WITH-JENKINS


No comments:

Post a Comment