@Override public boolean start() throws Exception { StepContext context = getContext(); sockets = new ArrayList<String>(); initRemoteAgent(); context.newBodyInvoker(). withContext(EnvironmentExpander.merge(getContext().get(EnvironmentExpander.class), new ExpanderImpl(this))). withCallback(new Callback(this)).withDisplayName(null).start(); return false; }
@Override public boolean start() throws Exception { if (getContext().hasBody()) { // recommended mode if (step.concurrency != null) { throw new AbortException(Messages.StageStepExecution_concurrency_not_supported_in_block_mode()); } getContext().newBodyInvoker().withCallback(BodyExecutionCallback.wrap(getContext())).withDisplayName(step.name).start(); return false; } getContext().get(TaskListener.class).getLogger().println(Messages.StageStepExecution_non_block_mode_deprecated()); if (isInsideParallel(node)) { throw new AbortException(Messages.StageStepExecution_the_stage_step_must_not_be_used_inside_a()); } node.addAction(new LabelAction(step.name)); node.addAction(new StageActionImpl(step.name)); enter(run, getContext(), step.name, step.concurrency); return false; // execute asynchronously }