DEV Community

Cover image for 8 Jenkins plugins I can't live without
José Coelho
José Coelho

Posted on • Edited on

8 Jenkins plugins I can't live without

Jenkins is a great open source automation platform. It has some great features straight out of the box.

However, in my opinion, what makes it standout is its community and the plugins it develops.

There are more than a thousand plugins available to support almost every technology, tool and process for building, deploying and automating your projects.

These are some of the plugins I use the most and which without I would have my work a lot harder.

1. Ansi Color Plugin

Let's start with a simple one. Jenkins's console does not support ANSI escape sequences, specifically color ones, out of the box. This means that whatever tool you're using the console will be just black and white.

Ansi Color plugin adds support for ANSI escape sequences to the Jenkins console output, making it possible to have colored output on your logs. This depends on the tool your using, if it doesn't print ANSI characters there's nothing you can do.

Ansi color Maven

2. Blue Ocean Plugin

Let's face it! Jenkins UI is not the greatest, however there are lots of plugins that adress this issue.

Blue Ocean gives you an incredibly user friendly UI to interact with Jenkins. Its developers claim that anyone, even non technical people, can use Jenkins easily with Blue Ocean.

Here's a pipeline representation in Blue Ocean:

Blue Ocean Pipeline run

Tip: Blue Ocean works great when you're trying to analyze logs of a pipeline running tasks in parallel. On the classic view, parallel logs are scrambled.

3. Git Parameter Plugin

When you spend most of your day building pipelines and automating boring tasks, you want people to actually use them. To achieve that you have to make it easy to use.

Git Parameter plugin lets you have Git branches, tags or revisions as a parameter for starting a job or pipeline.

This is really useful if, for example, you want to setup a continuous delivery pipeline where the developer can choose from which Git tag to deploy from.

Git parameter

Tip: always filter branches/tags according to the pipelines purposes, otherwise you might end up with instable code in production environments for example.

4. GitLab Plugin

In my company, we use a hosted GitLab instance as our source code management tool. And even though I love GitLab's approach to CI (have a read) we haven't gone that route.

So we use Jenkins instead and connect it to GitLab. In the end, developers have the same experience.

GitLab plugin lets you call pipelines from GitLab, using WebHooks, and publish the build results back to GitLab.

This allows you to quickly get feedback from your CI pipelines.

GitLab Plugin

You can find the similar plugins for other SCM tools.

Tip: favor execution of pipelines through WebHooks over SCM polling when ever you can. On big systems you'll get better performance.

5. Extended Email Plugin

When something goes wrong you need your users to fix the problem as soon as possible, otherwise your CI/CD could be compromised.

Extended Email plugin extends Jenkins email notifications giving control over almost every aspect of it. You can customize the notifications triggers, content and recipients.

Have a look at these recipes to have some ideas of your own.

Tip: make sure every notification you send is absolutely necessary, do not spam your users. Trust me, the less notifications you send the more users will read them and actually react to them. Use IM plugins (like Slack plugin or Skype plugin) to sparse your notifications.

6. embedabble-build-status Plugin

Another great way to warn your users when something is wrong is to use Badges on your SCM tool.

This plugin generates badges for all your jobs which display, in real time, their build status.

Embedabble Build Status

7. Publish over SSH Plugin

As you probably take from the name, this plugin provides features to send files and run commands over SSH.

You can configure your remote hosts on you Manage Jenkins page and then use them on your jobs.

Tip: if for some reason you cannot have a Jenkins agent installed on one of yours hosts, this plugin allows you to run commands remotely over SSH.

8. Next Executions Plugin

Once you get a considerable amount of jobs set up, it might get hard to keep up with every thing that's happening and running on your Jenkins.

Next Executions Plugin adds a widget to the main page of your Jenkins instance that displays the next build date of all your scheduled jobs.

This will give you a much better picture of the state of your infrastructure.

Conclusion

These are some of the plugins I use every day and there are thousands more to explore.

Do you have any favorite one? Let me know in the comments! I'm looking for some new favorite plugins :D

Top comments (7)

Collapse
 
ruvans profile image
Ruth Evans

My absolute favourite plugin is green balls!. It just changes the icon for succeeding jobs from blue to green balls. Why are they blue anyway?!

Collapse
 
jcoelho profile image
José Coelho • Edited

Nice! Also check out the Modern Status plugin. Looks super cool.

I've read that blue is easier to differentiate from red for people that are color blind. :)

color blind colors

Collapse
 
gnuchu profile image
John Griffiths

Came here to say this.

I once read somewhere that they were blue instead of green by default as that is how Japanese traffic lights are. Not sure how true this is though.

Collapse
 
kuperadrian profile image
Adrian Kuper

It's the most likely explanation since Jenkins was created by Kohsuke Kawaguchi, a japenese developer. The japanese influence can also be seen in the Jenkins logo which displays the butler, Mr. Jenkins, on top of the japanese flag.

Collapse
 
vancanhuit profile image
Đinh Văn Cảnh

Recently, I use Job DSL plugin for automating job creation and it is awesome.

Collapse
 
jcoelho profile image
José Coelho

Nice! Need to look into that one.

Collapse
 
panda098 profile image
panda098

Hey Jose, nice article :-) However, you completely forgot ChuckNorris plugin