How to Get Started with Jenkins

The jenkins integration on Zapier actually uses a webhook notification plugin rather than communicating with the Jenkins API. For most people Jenkins typically has the proverbal "keys to the kingdom" so we've opted to use the notification plugin to avoid making people open their jenkins server up.

Setup the Plugin

In Jenkins, navigate to the plugins panel:

Plugins

Locate the Notification Plugin and check the checkbox to install it!

Notification Plugin

Install the plugin and restart jenkins

Install and restart

Now create a new job or modify an existing job, you'll see an option to add an endpoint:

notification endpoint

Setup a Zap

Create a new Zap using Jenkins as the trigger (in this example we'll push to Slack).

Jenkins to Twitter

Copy the webhook URL from step 2 to a notification endpoint by creating a new notification endpoint in jenkins.

Copied in compadre

Map your fields to the action in step 5.

Map fields

(for fun you may also set the bot icon URL)

Bot icon

Run a single build, load the samples in step 6 and test the zap to see the output in your action side service.

So cool.

If everything goes well, turn the zap on and you're good to go! You can also add many endpoints to a single job, so you can have a ton of post-build operations that happen outside jenkins get kicked off.

Was this article helpful?
0 out of 0 found this helpful