/** * The entry unique ID needs to be tied to a project, so that * new builds will replace the old result. */ @Override public String getEntryID(Run e) { // can't use a meaningful year field unless we remember when the job was created. return "tag:hudson.dev.java.net,2008:"+e.getParent().getAbsoluteUrl(); } };
/** * Obtains the absolute URL to this build. * * @deprecated * This method shall <b>NEVER</b> be used during HTML page rendering, as it's too easy for * misconfiguration to break this value, with network set up like Apache reverse proxy. * This method is only intended for the remote API clients who cannot resolve relative references. */ @Exported(visibility=2,name="url") @Deprecated public final @Nonnull String getAbsoluteUrl() { return project.getAbsoluteUrl()+getNumber()+'/'; }
/** * Creates a new instance of {@link DefaultGraphConfigurationView}. * * @param configuration * the graph configuration * @param job * the owning job to configure the graphs for * @param pluginName * The name of the plug-in. * @param buildHistory * the build history for this job */ public DefaultGraphConfigurationView(final GraphConfiguration configuration, final Job<?, ?> job, final String pluginName, final BuildHistory buildHistory) { this(configuration, job, pluginName, buildHistory, job.getAbsoluteUrl() + pluginName + "/configureDefaults"); }
/** * The entry unique ID needs to be tied to a project, so that * new builds will replace the old result. */ @Override public String getEntryID(Run e) { // can't use a meaningful year field unless we remember when the job was created. return "tag:hudson.java.net,2008:"+e.getParent().getAbsoluteUrl(); } };
/** * The entry unique ID needs to be tied to a project, so that * new builds will replace the old result. */ @Override public String getEntryID(Run e) { // can't use a meaningful year field unless we remember when the job was created. return "tag:hudson.dev.java.net,2008:"+e.getParent().getAbsoluteUrl(); } };
/** * The entry unique ID needs to be tied to a project, so that * new builds will replace the old result. */ @Override public String getEntryID(Run e) { // can't use a meaningful year field unless we remember when the job was created. return "tag:hudson.java.net,2008:"+e.getParent().getAbsoluteUrl(); } };
/** * The entry unique ID needs to be tied to a project, so that * new builds will replace the old result. */ @Override public String getEntryID(Run e) { // can't use a meaningful year field unless we remember when the job was created. return "tag:hudson.java.net,2008:"+e.getParent().getAbsoluteUrl(); } };
/** * The entry unique ID needs to be tied to a project, so that new builds * will replace the old result. */ @Override public String getEntryID(Run e) { // can't use a meaningful year field unless we remember when the job was created. return "tag:hudson.java.net,2008:" + e.getParent().getAbsoluteUrl(); } };
public static String getProjectUrl(Job project) { return Util.encode(project.getAbsoluteUrl()); }
public static String getProjectUrl(Job project) { return Util.encode(project.getAbsoluteUrl()); }
/** * Obtains the absolute URL to this build. * * @deprecated * This method shall <b>NEVER</b> be used during HTML page rendering, as it's too easy for * misconfiguration to break this value, with network set up like Apache reverse proxy. * This method is only intended for the remote API clients who cannot resolve relative references. */ @Exported(visibility=2,name="url") @Deprecated public final @Nonnull String getAbsoluteUrl() { return project.getAbsoluteUrl()+getNumber()+'/'; }
/** * Obtains the absolute URL to this build. * * @deprecated * This method shall <b>NEVER</b> be used during HTML page rendering, as it won't work with * network set up like Apache reverse proxy. * This method is only intended for the remote API clients who cannot resolve relative references * (even this won't work for the same reason, which should be fixed.) */ @Exported(visibility=2,name="url") public final String getAbsoluteUrl() { return project.getAbsoluteUrl()+getNumber()+'/'; }
/** * Returns the URL of this object. * * @return the URL of this object */ public String getUrl() { return getOwner().getAbsoluteUrl() + "/" + getKey() + "/configure"; }
/** * Obtains the absolute URL to this build. * * @deprecated * This method shall <b>NEVER</b> be used during HTML page rendering, as it won't work with * network set up like Apache reverse proxy. * This method is only intended for the remote API clients who cannot resolve relative references * (even this won't work for the same reason, which should be fixed.) */ @Exported(visibility=2,name="url") public final String getAbsoluteUrl() { return project.getAbsoluteUrl()+getNumber()+'/'; }
/** * Obtains the absolute URL to this build. * * @deprecated This method shall <b>NEVER</b> be used during HTML page * rendering, as it won't work with network set up like Apache reverse * proxy. This method is only intended for the remote API clients who cannot * resolve relative references (even this won't work for the same reason, * which should be fixed.) */ @Exported(visibility = 2, name = "url") public final String getAbsoluteUrl() { return project.getAbsoluteUrl() + getNumber() + '/'; }
/** * Obtains the absolute URL to this build. * * @deprecated * This method shall <b>NEVER</b> be used during HTML page rendering, as it won't work with * network set up like Apache reverse proxy. * This method is only intended for the remote API clients who cannot resolve relative references * (even this won't work for the same reason, which should be fixed.) */ @Exported(visibility=2,name="url") public final String getAbsoluteUrl() { return project.getAbsoluteUrl()+getNumber()+'/'; }
public static TeamGitStatus fromJob(@Nonnull final Job job) { final TeamGitStatus status = new TeamGitStatus(); status.state = GitStatusState.Pending; status.description = "Jenkins Job " + job.getDisplayName() + " queued"; status.targetUrl = job.getAbsoluteUrl(); status.context = getStatusContext(job); return status; }
/** * Saves the configured values. Subclasses need to implement the actual persistence. * * @param request * Stapler request * @param response * Stapler response */ public void doSave(final StaplerRequest request, final StaplerResponse response) { try { JSONObject formData = request.getSubmittedForm(); if (configuration.initializeFrom(formData)) { persistValue(configuration.serializeToString(), key, request, response); } } catch (IOException exception) { LOGGER.log(Level.SEVERE, "Can't save the form data: " + request, exception); } catch (ServletException exception) { LOGGER.log(Level.SEVERE, "Can't process the form data: " + request, exception); } finally { try { response.sendRedirect(owner.getAbsoluteUrl()); } catch (IOException exception) { LOGGER.log(Level.SEVERE, "Can't redirect", exception); } } }
response.sendRedirect2(entity.getProject().getAbsoluteUrl());
response.sendRedirect2(entity.getProject().getAbsoluteUrl());