Skip to content

Instantly share code, notes, and snippets.

View timbrown5's full-sized avatar

Tim Brown timbrown5

View GitHub Profile
@timbrown5
timbrown5 / PipelineGraphApiTest.java
Created July 21, 2021 18:55
Update to `complexSmokes()` to check Parallel branches
@Test
public void complexSmokes() throws Exception {
WorkflowRun run = TestUtils.createAndRunJob(j, "complexSmokes", "complexSmokes.jenkinsfile", Result.SUCCESS);
PipelineGraphApi api = new PipelineGraphApi(run);
PipelineGraph graph = api.createGraph();
List<PipelineStage> stages = graph.getStages();
assertThat(stages, hasSize(4));
// Top level stages