We are currently using the build flow plugin to coordinate some integration tests using code along these lines :
guard {
parallel(
{ build('integration-test-mysql') },
{ build('integration-test-pgsql') },
{ build('integration-test-oracle') }
)
} rescue {
// omitting failure detection logic for brevity
if ( passed ) {
// do stuff for when all tests pass
} else {
// do stuff for when tests fail
}
}
How can the same be achieved with the new pipeline functionality?