Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.org

README.org

1 Get Slack Notifications For System Upgrade


Has the deployment been initiated? Already finished? And how does it look after the deployment? These are typical questions people will frequently ask. Especially managers and key holders.

Thanks to Slack, team can sync up much easier than before. With more and more DevOps adoptions, we’re likely to have one-button click deployment. Let’s send out slack notifications for system upgrade. Better sync up, better control.

https://www.dennyzhang.com/wp-content/uploads/denny/slack_deployment.jpg


1.1 Why We Need Slack Notifications[1]

  1. Different people may want to check upgrade process.
  • Track upgrade history for further trouble shooting.

1.2 Backbone: Deployment Automation + Jenkins + Slack

Let’s assume:

  1. We can do one command deployment.
  • Monitoring system is properly configured.

https://www.dennyzhang.com/wp-content/uploads/denny/slack_notification_upgrade.png

Thus we can wrap up the deployment automation scripts as a Jenkins job. And enable slack Jenkins plugin[2]. Then configure the job to send slack notifications, whenever the job starts or ends.

https://www.dennyzhang.com/wp-content/uploads/denny/jenkins_slack_job.png

Another question people will constantly ask: how healthy my env is? Here we rely on monitoring system. So we can ask monitoring to send out slack notifications for all major issues.

Put it all together, here comes a demo. Now when people want to get more information about prod upgrade, it’s much easier. Just subscribe or check slack channels.

https://www.dennyzhang.com/wp-content/uploads/denny/slack_deployment.jpg

Any improvements or suggestions? Share your experience with us!

[1] https://slack.com [2] https://wiki.jenkins-ci.org/display/JENKINS/Slack+Plugin

More Reading:

linkedin
github
slack


PRs Welcome

Blog URL: https://www.dennyzhang.com/slack_deployment

You can’t perform that action at this time.