877 B
877 B
Exercise 6
This exercise will demonstrate the use of a Google Chat room as way to send a notification upon a failed build. Given the locked down nature of Google Chat, this exercise will only be demonstrated by the instructor.
Notifying the Team Upon a Broken Build
- Change the list of Gradle tasks to
doesnotexistto emulate a failure. The build will fail as the task doesn't exist in the build script. - Install the Google Chat Notification plugin.
- Create a new chat room in Google Chat named
jenkins-testat https://chat.google.com/. - For the chat room configure the webhook.
- Configure the job to send a notification whenever the job fails. Use the webhook generated on Google Chat.
- Execute the build. The build should fail and send a notification to the chat room.