views:

52

answers:

2

We have a bunch of maven2 projects in Hudson, all set to Poll SCM at the same time.

The problem is that there doesn't seem to be an order in the way it polls and builds the projects. Ideally it would check the upstream projects first. I could set the poll SCM schedule to account for this, but this seems error-prone as new projects are added.

Right now, sometimes it checks a downstream project "X" first, finds a change and builds with an error. Then when the upstream project "Y" is checked/built, this triggers a build of project X, which is successful. Creating some pointless error notifications.

+1  A: 

Under "Advanced Project Options", check "Block build when upstream project is building"

Michael Mrozek
+1  A: 

Since 1.323 there is an advanced maven build option block-when-upstream-building. Maybe that could be helpful?

Peter Tillemans