public boolean setupWrappers(final List<BuildWrapper> wrappers) throws IOException, InterruptedException { for (final BuildWrapper w : wrappers) { final Environment e = w.setUp((AbstractBuild<?, ?>) this.build, this.launcher, this.listener); if (e == null) { return false; } final List<Environment> buildEnvironments = getBuildEnvironments(); buildEnvironments.add(e); } return true; }
public boolean tearDownBuildEnvironments(final BuildListener listener) throws IOException, InterruptedException { boolean failed = false; final List<Environment> buildEnvironments = getBuildEnvironments(); for (int i = buildEnvironments.size() - 1; i >= 0; i--) { if (!buildEnvironments.get(i).tearDown(this.build, listener)) { failed = true; } } return failed; }
@Override public Environment setUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, RunnerAbortedException { initPython(); if (pexec.isImplemented(3)) { return (Environment) pexec.execPython("set_up_environment", build, launcher, listener); } else { return super.setUpEnvironment(build, launcher, listener); } }
@Override public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { initPython(); if (pexec.isImplemented(4)) { return (Environment) pexec.execPython("set_up", build, launcher, listener); } else { return super.setUp(build, launcher, listener); } }
private List<Environment> getBuildEnvironments() { return this.build.getEnvironments(); }
public Environment superSetUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, RunnerAbortedException { return super.setUpEnvironment(build, launcher, listener); }
public Environment superSetUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { return super.setUp(build, launcher, listener); }