Mr.Jason, above idea is good but its a bit different from what i need to achieve. Better i can give a more information about what i'm trying to do.
On Mon, Oct 24, 2016 at 9:01 PM, Jason Whittington < [email protected]> wrote: > 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. > -- *Regards,* *B.Aditya Narayana,* *Reg. Id. R092574,* *Computer Science and Engineering Dept.* *APIIIT-RKV,* *RGUKT,* *KADAPA.* *Contact: 9908585071 , 8125497669* *Email: [email protected] <[email protected]>* -- 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.
