How to run jobs in Hudson in some predefined order?

continuous-integration, hudson

Solution

When creating a new job, you normally can specify what upstream project must be built in order to begin this job.

This option is in Build Triggers -> Build after other projects are built when creating/modifying a job.

Problem

There are 4 jobs: ``` Build1 Build2 Test1 Test2 ``` Build1 and Build2 can be started simultaneously. Test1 should be started only when both Build1 and Build2 will be finished. Tes2 should be started only when Tes1 will be finished. Also I would like to have ability to start all of these jobs separately. Is there any way to setup jobs according these rules?

Original source