public Action getProjectAction(AbstractProject<?, ?> project) { if (project instanceof Project) return getProjectAction((Project) project); else return null; }
/** * @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(); }
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener) { if (build instanceof Build) return prebuild((Build)build,listener); else return true; }
@Nonnull public Collection<? extends Action> getProjectActions(AbstractProject<?, ?> project) { // delegate to getJobAction (singular) for backward compatible behavior Action a = getProjectAction(project); if (a==null) return Collections.emptyList(); return Collections.singletonList(a); }
/** * {@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 prebuild(AbstractBuild<?,?> build, BuildListener listener) { if (build instanceof Build) return prebuild((Build)build,listener); else return true; }
public Action getProjectAction(AbstractProject<?, ?> project) { if (project instanceof Project) return getProjectAction((Project) project); else return null; }
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 prebuild(AbstractBuild<?,?> build, BuildListener listener) { if (build instanceof Build) return prebuild((Build)build,listener); else return true; }
public Action getProjectAction(AbstractProject<?, ?> project) { if (project instanceof Project) { return getProjectAction((Project) project); } else { return null; } }
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 prebuild(AbstractBuild<?,?> build, BuildListener listener) { if (build instanceof Build) return prebuild((Build)build,listener); else return true; }
public Action getProjectAction(AbstractProject<?, ?> project) { if (project instanceof Project) return getProjectAction((Project) project); else return null; }
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 prebuild(AbstractBuild<?, ?> build, BuildListener listener) { if (build instanceof Build) { return prebuild((Build) build, listener); } else { return true; } }
public Action getProjectAction(AbstractProject<?, ?> project) { if (project instanceof Project) return getProjectAction((Project) project); else return null; }
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 prebuild(AbstractBuild<?,?> build, BuildListener listener) { if (build instanceof Build) return prebuild((Build)build,listener); else return true; }
public Action getProjectAction(AbstractProject<?, ?> project) { if (project instanceof Project) return getProjectAction((Project) project); else return null; }
/** * @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(); }