About Orest Ivasiv

Passionate software engineer interested in different programming languages, pragmatic approaches and performance boost practices.

Jenkins enhancements without plugins

Jenkins is a popular open source continuous integration server. I use it heavily. Jenkins is super extensible CI server with huge plugins repository. But I must admit that there are a lot of cases when all these Jenkins plugin’s ‘zoo’ doesn’t help. What does it mean?:

  • we need a tons of plugin to solve some non-trivial problem,
  • too many plugins dependencies which must be properly managed
  • some available plugins partially provide required functionality
  • some plugins provide required functionality but contain bugs
  • or it might be impossible to find necessary plugin, and task have to be done ASAP

 
 
Based on these cases mentioned above we have at least two solutions:

  1. Implement own plugin which will provide all required functionality. It will take some time and slowdown the overall progress for this particular business task
  2. Use some Jenkins extra facilities which gives us a chance for Jenkins automation without plugin writing

I’m a real fun od 2d solution (at least as a prototyping phase or quick-and-dirty solution right-now-right-away). So, what’s the magic? Jenkins has two nice plugins (of cause there are much more similar plugin, but these two are the best for quick start) which give us a possibility to write Groovy scripts for build and post-build phases:

Pros:

  • Groovy scripts have access to whole Jenkins infrastructure (Jenkins packages) and can invoke functionality of third-party plugins installed in this Jenkins instance
  • It’s very easy to prototype your ideas and validate automation approaches
  • It gives us very quick business results
  • Groovy scripts can automate really amazing and non-trivial tasks

Cons:

  • at the end these Groovy scripts are not easy for automated testing
  • version managements for these scripts involve additional work (implement simple import/export tool for job configuration)
  • these Groovy scripts can have dependency on some third-party plugins and these dependency must me somehow managed as well
  • testing and debugging are really painful activities, because it involve too many interactions with Jenkins UI, etc. (yes, it can be somehow improved via extending both Groovy plugins, but it’s extra work)

 

Reference: Jenkins enhancements without plugins from our JCG partner Orest Ivasiv at the Knowledge Is Everything blog.

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

Leave a Reply


+ 1 = six



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close