If nothing else you could do this do this by writing a script that launches 
a bunch of processes in parallel and then waits for them to exit.   For 
example the powershell below will run two instances of notepad on a windows 
box and return 0 if they both exit normally and 1 if either of them 
terminates abnormally.  You should be able to do something similar in a 
bash script if you are on Linux.

$a = [Diagnostics.Process]::Start("notepad")            
$b = [Diagnostics.Process]::Start("notepad")            
 
Wait-Process $a.Id
Wait-Process $b.Id

Write-Host $a.ExitCode
Write-Host $b.ExitCode

if($a.ExitCode -ne 0 -Or $b.ExitCode -ne 0) {
   Write-Host "There was a problem!"
   return 1
}
else {
   Write-Host "Both Succeeded!"
   return 0
}

This would be a single job/task but it should give you all the flexibility 
you need.  If you make your script take parameters you could still control 
it via GoCD parameters or environment variables.

Jason

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to