Hi,

Lock & Latch plugin should help you achieve what you need:
https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin

regards

didier

On Feb 9, 3:42 pm, Dirk Kuypers <[email protected]> wrote:
> Hi,
>
> is it possible to block a build as long as downstream projects are
> queued, but not running?
>
> Background: We have a continuous compile job triggered by SCM changes
> which starts about 30 unit test jobs after successfull compile. Most
> test jobs copy their workspace via copy-workspace-scm plugin from this
> compile job. Compile takes about 5 minutes, some test projects 10
> minutes and longer. The round-trip build cycle is around 18 minutes at
> the moment. When I disable "Block build when downstream jobs are
> running" at the compile job it will happen, that there are some tests
> queued from the previous build which will get started after the second
> compile is successfull. So those tests get their workspace from the
> second compile and not from the first one. If the second compile job
> had to wait untill all remaining tests left the queue and entered the
> state running I think it would be save to start the next compile (and
> could save us about 5 minutes in our build cycle).
>
> Another possibility would be to tie the unit-test job to its starting
> compile job with the workspace attached and not to "Most recent
> completed build".
>
> Any thoughts on this? Any other way to achieve my goal?
>
> Dirk
>
> --
> Never trust a short-haired guru

Reply via email to