January 25, 2018

Get the connected Jenkins master for a slave

tags: jenkins

If you operate several Jenkins masters with dozens of slaves, you might end up one day on a slave without knowing to which master it is connected. In case the master establishes the connection to the slave, following snippet will help

Read More

December 30, 2017

Export and import of Jenkins views

tags: jenkins groovy

When dealing with jenkins views you will soon realize that this is not that easy as unlike Jenkins jobs or many other configuration stuff, views are not saved in a separate config file or location.

Read More

October 21, 2017

Simple java-plugin-mechanism with SPI

tags: java

This post is about „How to build your own pluginnable application“. As a playground example I want to create a core application that is easily extendable by just putting a plugin-jar into a plugins folder.

Read More

April 8, 2017

Deploy specific versions of Jenkins-plugins via Artifactory-caching

tags: artifactory jenkins

Jenkins can be configured in many ways. When trying to find a suitable solution for deployment of plugins, we’ve been facing to the problem of using not (!) the latest and greatest plugin versions. This can be necessary when using the jobdsl plugin without having the resources to update our own dsl library when there comes up a non-downstream-compatible version of the jobdsl plugin. But this is only one example, there are more 🙂

Read More

February 22, 2017

Logging in Groovy with replaceable Logger-implementations

tags: groovy log4j logback slf4j

With version 1.8 a great feature got into the release of Groovy: the groovy.util.logging.Slf4j-annotation. With that annotation you can create the logging facade which can be used then at runtime with different logging implementations. In this example I will use „simple logging“, „log4j“ and „logback“ as implementations.

Read More

March 27, 2016

HTTP loadbalancing springboot servers with Nginx

tags: nginx

When playing around with state-of-the-art technologies, I struggled over Nginx (called Engine X) that aims to be the new hot stuff within serving static and dynamic content. I’ve been aware of using Apache HTTP server for loadbalancing, so I wanted to try out how difficult it would be to use Nginx.

Read More

October 25, 2015

Java statics

tags: java

Java statics might be a bit mysterious for beginners. Here’s my clarification for myself :

Read More