Monthly Archives: November 2013

How to write a Jenkins Plugin – Part 4

In this part we’ll look at getting your plugin hosted on the Jenkins GitHub, performing a release, and documenting your plugin in the Jenkins wiki. Your main point of reference for this should be the official guide in the Jenkins

Posted in Jenkins, Jenkins Plugins

How to write a Jenkins Plugin – Part 3

In this part we will find a way to count the number of failed jobs in a view and pass it back to our Jelly UI fragment. Counting Failed Jobs In a View First we’re going to modify our viewTabs.jelly

Posted in Jenkins, Jenkins Plugins

How to write a Jenkins Plugin – Part 2

In this part we will create a form fragment for the global config page using Jelly, and see how to save and use changes to the config submitted by users. Then we’ll customise the view tabs Jelly to call our

Posted in Jenkins, Jenkins Plugins

How to write a Jenkins Plugin – Part 1

Maven Settings You will need Maven 3 for this. Maven 2 will not work. (Also needs JDK 6 or higher.) You will need to add some junk to your settings.xml: In pluginGroups add <pluginGroup>org.jenkins-ci.tools</pluginGroup> And In profiles, add a profile like

Posted in Jenkins, Jenkins Plugins

How to write a Jenkins Plugin – Introduction

Why? I love Jenkins. Use it all the time. Depend on it, rely on it. Wherever I work, I always make considerable and sustained efforts to improve the way that Jenkins is used. Extending from commit builds to complete delivery

Posted in Jenkins, Jenkins Plugins

JUnit Rule for Annotations in EasyMock 3.3

In my first contribution for EasyMock 3.3 I have added support for processing the annotations with a JUnit Rule instead of the JUnit Runner. In 3.2 you could do this: @RunWith(EasyMockRunner.class) public class SomethingTest extends EasyMockSupport{ @Test public void shouldDoSomething()

Posted in EasyMock, JUnit

Annotations in EasyMock 3.2

Lots of people have been asking for annotation support in EasyMock, including me: EASYMOCK-51. I created EasyMockRule as a way to add annotation driven mocking, and a few other nice features like Hamcrest matcher support for expectation setters and automatic verification, mostly

Posted in EasyMock