Skip to main content

Posts

Showing posts from July, 2015

Implementing a Jenkins plugin from scratch in 5 steps and less then 5 minutes (no kidding)

I have written several posts in this blog about useful Jenkins plugins available in the Jenkins Update Center. But what about the plugin you need for specific purposes hasn't been implemented yet? Do it by yourself! If you have Java development skills and know a little bit of Maven this task isn't impossible. You need to use Maven 3.1.1 or later in order to successfully complete the process detailed below. Before you start you need to update the settings.xml file of you local Maven this way: 1) Add a mirror to the mirrors list for the Jenkins Update Centre: <mirrors> ...     <mirror>       <id>repo.jenkins-ci.org</id>       <url>http://repo.jenkins-ci.org/public/</url>       <mirrorOf>m.g.o-public</mirrorOf>     </mirror> ... </mirrors> 2) Add a profile for Jenkins to the profiles list: <profiles> ... ...