From 08da6dfe1e48ccb09393c26510eb2307d2bff797 Mon Sep 17 00:00:00 2001 From: jgedarovich Date: Tue, 1 Apr 2014 18:47:26 +0000 Subject: [PATCH] prepare for actual 1.0 release --- pom.xml | 45 ++++++++++++++----- .../com/etsy/jenkins/MasterBuildCause.java | 9 ++++ .../java/com/etsy/jenkins/MasterModule.java | 4 +- .../jenkins/MasterBuild/latestBuildList.jelly | 1 + .../jenkins/MasterBuild/latestBuildRow.jelly | 3 ++ 5 files changed, 50 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index e796001..511d1ea 100644 --- a/pom.xml +++ b/pom.xml @@ -3,8 +3,7 @@ org.jenkins-ci.plugins plugin - 1.427 - ../pom.xml + 1.515 com.etsy.jenkins @@ -12,14 +11,34 @@ 1.0-SNAPSHOT hpi + Jenkins Master Project Plugin + + This plugin provides a new project type. In this new project type you can select a list of sub-projects which should be executed in one logical master project. + + + scm:git:ssh://github.com/etsy/jenkins-master-project.git + scm:git:git@github.com/etsy/jenkins-master-project.git + https://github.com/etsy/jenkins-master-project.git + + + + + jgedarovich + Jimbo + + jenkins-public http://repo.jenkins-ci.org/public/ - - + + + repo.jenkins-ci.org + http://repo.jenkins-ci.org/public/ + + org.jvnet.hudson.plugins @@ -40,14 +59,20 @@ true - com.google.inject - guice - 2.0 + org.jenkins-ci.plugins + mailer + 1.8 + true + + + org.sonatype.sisu + sisu-guice + 3.1.0 - com.google.inject.extensions - guice-assisted-inject - 2.0 + org.sonatype.sisu.inject + guice-assistedinject + 3.1.0 diff --git a/src/main/java/com/etsy/jenkins/MasterBuildCause.java b/src/main/java/com/etsy/jenkins/MasterBuildCause.java index 28dc73c..32f9492 100644 --- a/src/main/java/com/etsy/jenkins/MasterBuildCause.java +++ b/src/main/java/com/etsy/jenkins/MasterBuildCause.java @@ -20,5 +20,14 @@ public MasterBuildCause(Run master, int rebuildNumber) { public int getRebuildNumber() { return rebuildNumber; } + public boolean equals(Object rhs) { + + if(rhs instanceof MasterBuildCause) { + return super.equals(rhs) + && this.rebuildNumber == ((MasterBuildCause)rhs).getRebuildNumber(); + } else { + return false; + } + } } diff --git a/src/main/java/com/etsy/jenkins/MasterModule.java b/src/main/java/com/etsy/jenkins/MasterModule.java index 7d7fa5a..0ee02b6 100644 --- a/src/main/java/com/etsy/jenkins/MasterModule.java +++ b/src/main/java/com/etsy/jenkins/MasterModule.java @@ -28,8 +28,8 @@ protected void configure() { FactoryProvider.newFactory( RebuildWatcher.Factory.class, RebuildWatcher.class)); bindConstant().annotatedWith(MasterProject.PingTime.class).to(7000L); - - ExecutorService executor = Executors.newFixedThreadPool(25); + //Thread pool size; should be >= number of build slaves + ExecutorService executor = Executors.newFixedThreadPool(150); bind(ExecutorService.class) .toInstance(executor); bind(Executor.class) diff --git a/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildList.jelly b/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildList.jelly index a82a33a..2f16b9c 100644 --- a/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildList.jelly +++ b/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildList.jelly @@ -46,6 +46,7 @@ ${%Build} ${%Date} ${%Status} + ${%Duration} diff --git a/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildRow.jelly b/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildRow.jelly index 22dad91..4c72509 100644 --- a/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildRow.jelly +++ b/src/main/resources/com/etsy/jenkins/MasterBuild/latestBuildRow.jelly @@ -20,6 +20,9 @@ + + ${b.durationString} +