/** * @deprecated * Use {@link #perform(AbstractBuild, Launcher, BuildListener)} instead. */ @Deprecated public boolean perform(Build<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (build instanceof AbstractBuild && Util.isOverridden(BuildStepCompatibilityLayer.class, this.getClass(), "perform", AbstractBuild.class, Launcher.class, BuildListener.class)) { return perform((AbstractBuild<?, ?>) build, launcher, listener); } throw new AbstractMethodError(); }
/** * {@inheritDoc} * @return Delegates to {@link SimpleBuildStep#perform(Run, FilePath, Launcher, TaskListener)} if possible, always returning true or throwing an error. */ @Override public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (this instanceof SimpleBuildStep) { // delegate to the overloaded version defined in SimpleBuildStep FilePath workspace = build.getWorkspace(); if (workspace == null) { throw new AbortException("no workspace for " + build); } ((SimpleBuildStep) this).perform(build, workspace, launcher, listener); return true; } else if (build instanceof Build) { // delegate to the legacy signature deprecated in 1.312 return perform((Build)build,launcher,listener); } else { return true; } }
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (build instanceof Build) return perform((Build)build,launcher,listener); else return true; }
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (build instanceof Build) return perform((Build)build,launcher,listener); else return true; }
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (build instanceof Build) return perform((Build)build,launcher,listener); else return true; }
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (build instanceof Build) { return perform((Build) build, launcher, listener); } else { return true; } }
/** * @deprecated * Use {@link #perform(AbstractBuild, Launcher, BuildListener)} instead. */ @Deprecated public boolean perform(Build<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (build instanceof AbstractBuild && Util.isOverridden(BuildStepCompatibilityLayer.class, this.getClass(), "perform", AbstractBuild.class, Launcher.class, BuildListener.class)) { return perform((AbstractBuild<?, ?>) build, launcher, listener); } throw new AbstractMethodError(); }
/** * {@inheritDoc} * @return Delegates to {@link SimpleBuildStep#perform(Run, FilePath, Launcher, TaskListener)} if possible, always returning true or throwing an error. */ @Override public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { if (this instanceof SimpleBuildStep) { // delegate to the overloaded version defined in SimpleBuildStep FilePath workspace = build.getWorkspace(); if (workspace == null) { throw new AbortException("no workspace for " + build); } ((SimpleBuildStep) this).perform(build, workspace, launcher, listener); return true; } else if (build instanceof Build) { // delegate to the legacy signature deprecated in 1.312 return perform((Build)build,launcher,listener); } else { return true; } }