public Action getProjectAction(AbstractProject<?, ?> project) { if (project instanceof Project) return getProjectAction((Project) project); else return null; }
/** * Gets the dependency to other existing builds in a map. */ public Map<AbstractProject,Integer> getDependencies() { return getDependencies(false); }
private Object readResolve() throws ObjectStreamException { Shell shell = new Shell(command); shell.setUnstableReturn(unstableReturn); return shell; }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl)super.getDescriptor(); }
/** * Gets the Maven to invoke, * or null to invoke the default one. */ public MavenInstallation getMaven() { for( MavenInstallation i : getDescriptor().getInstallations() ) { if(mavenName !=null && mavenName.equals(i.getName())) return i; } return null; }
public boolean perform(BuildStep bs, AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { return bs.perform(build,launcher,listener); } },
private Object readResolve() throws ObjectStreamException { BatchFile batch = new BatchFile(command); batch.setUnstableReturn(unstableReturn); return batch; }
public static String resolve(User u) { for (UserNameResolver r : all()) { String name = r.findNameFor(u); if(name!=null) return name; } return null; }
public BuildStepDescriptor getDescriptor() { return (BuildStepDescriptor)super.getDescriptor(); } }
/** * Is this Maven 2.1.x or 2.2.x - but not Maven 3.x? * * @param launcher * Represents the node on which we evaluate the path. */ public boolean isMaven2_1(Launcher launcher) throws IOException, InterruptedException { return meetsMavenReqVersion(launcher, MAVEN_21); }
/** * May be overridden but this will only take effect when used as a {@link BuildWrapper} on an {@link AbstractProject}. * <p>{@inheritDoc} * @since 1.608 */ @Override public void makeBuildVariables(AbstractBuild build, Map<String,String> variables) { super.makeBuildVariables(build, variables); }
@Override public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException { return perform(build,launcher,(TaskListener)listener); }
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener) { if (build instanceof Build) return prebuild((Build)build,listener); else return true; }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl)super.getDescriptor(); }
public String getDisplayName() { return Messages.Fingerprinter_DisplayName(); }
public FingerprintAction(Run build, Map<String, String> record) { this.build = build; this.record = compact(record); }
/** * May be overridden but this will only take effect when used as a {@link BuildWrapper} on an {@link AbstractProject}. * <p>{@inheritDoc} * @since 1.608 */ @Override public Launcher decorateLauncher(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException { return super.decorateLauncher(build, launcher, listener); // TODO reasonable to decorate Launcher within a dynamic scope, but this signature does not mix well with Context pattern. // Called from AbstractBuildExecution.createLauncher; how do we track what is decorating what? // Would have to keep something like a LaunchedDecorator, not an actual Launcher, in Context. // And createLauncher is called before even preCheckout, so much too early for the Context to have been prepared. // Could perhaps create a proxy Launcher whose launch method checks some field in the Context remembered for the build. }
/** * Returns an avatar image URL for the specified user and preferred image size * @param user the user * @param avatarSize the preferred size of the avatar image * @return a URL string * @since 1.433 */ public static String getAvatar(User user, String avatarSize) { return UserAvatarResolver.resolve(user, avatarSize); }
public BuildStepDescriptor getDescriptor() { return (BuildStepDescriptor)super.getDescriptor(); } }
@Override public void onLoad(Run<?,?> r) { build = r; record = compact(record); }