DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. How to Get Slack Notifications for New Active Sprints

How to Get Slack Notifications for New Active Sprints

In this article, Denny Zhang explains how to set up Slack to give you notifications about new active Sprints. Read on to learn more!

Denny Zhang user avatar by
Denny Zhang
·
Nov. 28, 16 · Tutorial
Like (0)
Save
Tweet
Share
1.95K Views

Join the DZone community and get the full member experience.

Join For Free

following git workflows, there is a branch called activesprint or develop. it is the release candidate. most active branches should base on it.

teams need to be notified whenever a new activesprint branch has been created. to lower the communication effort, we can automate the detection process and get slack notifications.

image title

why we need slack notifications

for one, when a new active sprint is created, we usually need to merge our private branches as soon as possible. the earlier we do the branch merge, the less merge effort we should expect.

secondly, config files might need to be updated accordingly (especially the bump version).

backbone: jenkins and slack

first of all, we need to detect when a new git branch has been created.

we have two ways: push or poll. if we have the admin privilege of git repo, we can define a git hook. the hook subscribes to the git branch to create an event. or, we can define a crontab, which will periodically poll latest branch list of git ls-remote –heads origin.

fortunately, activesprint usually has a strong naming convention (say sprint-37/sprint-38 or 1.37/1.38). once we figure out latest branch list, we can easily detect whether a new activesprint branch has been created.

for a bigger adoption, we use the poll mechanism:

image title

here comes a jenkins job, monitornewactivesprint in github. we can also find a live version in our public demo on jenkins .

whenever we detect a new activesprint , we fail the job and it sends out slack notifications.

image title

this is how the jenkins job looks:

image title

once we have it properly configured, we will get a lovely slack notification:

image title

any improvements or suggestions? share your experience!

check out the original article here .

Slack (software) Git Branch (computer science) Sprint (software development)

Published at DZone with permission of Denny Zhang, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Steel Threads Are a Technique That Will Make You a Better Engineer
  • Integrate AWS Secrets Manager in Spring Boot Application
  • Choosing the Right Framework for Your Project
  • Demystifying the Infrastructure as Code Landscape

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: