Jenkins Shared Library with Unit tests

Writing a Jenkins Shared Library pipeline A good read to get started understanding about why and how we are doing this, is the Jenkins official documentation, which gives a good explanation about this, but quite incomplete when it comes an actual example implementation. I have taken most of the ideas and the article from Adrian Kuper, thank him and me for this tutorial. In this blog post I will try to explain how to setup and develop a shared pipeline library for Jenkins, that is easy to work on and can be unit tested with JUnit5 and Mockito....

January 16, 2021 · 17 min · Josep Jesus Bigorra Algaba