}
@Test
public void killingParallel() throws Exception {
WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "p");
p.setDefinition(new CpsFlowDefinition(join(
"import java.util.concurrent.*; node { ",
"timeout(time:5, unit:TimeUnit.SECONDS) { ",
"parallel(",
" a: { echo 'ShouldBeHere1'; sh 'sleep 10'; echo 'NotHere' }, ",
" b: { echo 'ShouldBeHere2'; sh 'sleep 10'; echo 'NotHere' }, ",