-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Jenkins Administrator's Guide
By :

We have divided the Use cases section into two parts. In the first part, we will build a library for sending pre-formatted Slack messages. This is the most commonly used shared library code pattern for providing a globally useful helper function. In the second part, we will develop our own DSL using the shared libraries in three different ways. This is a more advanced use case that will be useful in scaling your Jenkins instance. Let's get started.
Required plugins
Slack Notification
Let's create a helper function that sends a Slack message in a standard format.
Before starting, we need to configure Slack with Jenkins CI app so that it can receive messages from Jenkins:
Jenkins CI
, then click Add:
Figure 10.8 – Add the Jenkins...