use of org.jenkinsci.plugins.workflow.steps.StepExecution in project workflow-cps-plugin by jenkinsci.
the class CpsFlowExecutionTest method stepNames.
private static List<String> stepNames(ListenableFuture<List<StepExecution>> executionsFuture) throws Exception {
List<String> r = new ArrayList<String>();
for (StepExecution e : executionsFuture.get()) {
// TODO should this method be defined in StepContext?
StepDescriptor d = ((CpsStepContext) e.getContext()).getStepDescriptor();
assertNotNull(d);
r.add(d.getFunctionName());
}
return r;
}
Aggregations