I have found a workaround:

guard {
   build ("test-a")
   // Fast running jobs
   def fast = parallel (
      { build("test-b") },
      { build("test-c") }
   )
   // Slow running jobs
   def fastFailed = fast*.getResult()*.toString().any { result -> !"SUCCESS".equals(result) }
   if (!fastFailed) {
      parallel (
         { build("test-d") },
         { build("test-e") }
      )
   }
} rescue {
   build ("test-f")
}

It is not very nice but it does the trick...

Damien.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to