@Override public List<Future<AbstractBuild>> perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { List<Future<AbstractBuild>> r = super.perform(build, launcher, listener); if (block==null) return Collections.emptyList(); return r; }
@Override public List<Future<AbstractBuild>> perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { List<Future<AbstractBuild>> r = super.perform(build, launcher, listener); if (block==null) return Collections.emptyList(); return r; }
@Override @SuppressWarnings("deprecation") public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (canDeclare(build.getProject())) { // job will get triggered by dependency graph, so we have to capture buildEnvironment NOW before // hudson.model.AbstractBuild.AbstractBuildExecution#cleanUp is called and reset EnvVars env = build.getEnvironment(listener); build.addAction(new CapturedEnvironmentAction(env)); } else { for (BuildTriggerConfig config : configs) { config.perform(build, launcher, listener); } } return true; }