Posted tagged ‘hudson’

Hudson: start a list of jobs using Groovy console

28. Juli 2009

Recently I wrote how to get a list of failed jobs in Hudson.

Rob Whitlock asked how to restart that list.

Here is the code:


joblist = hudson.model.Hudson.instance.items.findAll{job -> job.isBuildable()}  

startServer = "admin computer"
startNote   = "bulk start"
cause = new hudson.model.Cause.RemoteCause(startServer, startNote)
joblist.each{run -> run.scheduleBuild(cause)}

In the first line I just get a list of jobs from somewhere.

The interesting part is line 6: here I start the build or more precise – reschedule it. Hudson starts it somewhere in the future.

There is a scheduleBuild() method without argument, but it is deprecated. That’s why I create a ‚cause‘ first. So the build knows why it is run. Usually you have a „started by user XYZ“ or „started by upstream project“ here.

Werbeanzeigen

Links for 2009-07-28

28. Juli 2009

GrepCode is a search index for open source available java code. Searchable codebases are OpenJDK, Maven-Central, JBoss.com, Jetty.Mortbay.org and Eclipse 3.4.2. If you miss ‚your‘ project you could send them a message.

Zend Technologies published seven screencast about PHP development with Eclipse PDT 2.1.

  • Code Navigation
  • Code Analysis and Auto-fix
  • PHP 5.3 Development
  • PHP Code Refactoring
  • RAD Tools
  • Root Cause Analysis
  • Jump Starting Web Application Development
  • Using Zend Studio & Server Integration

Lawers found newsletter about open source topics – in their focus. (Sorry, too much special words for me to translate the German article 😉

Netbeans 6.7 Maven and Hudson Demo

eBook „Mastering PowerShell“ available for free.

I found an overview article …

28. Dezember 2008

On JavaWorld John Ferguson Smart wrote a nice article about some of the most interesting Java evolutions in 2008. He discovers tools for Build automatisation (Hudson, Bamboo, Maven, Ant, Grant, Gradle, Subversion), Testing tools (JBehave, easyb, Selenium, WebTest) and IDEs (Eclipse, NetBeans). Conclusion: a very nice read.