/** * Build a URL of the currentBuild * * @return URL of the currentBuild */ public String getBuildResultURL() { return currentBuild != null ? currentBuild.getUrl() : ""; //$NON-NLS-1$ }
public MessageBuilder appendOpenLink() { String url = notifier.getBuildServerUrl() + build.getUrl(); message.append(" (<a href='").append(url).append("'>Open</a>)"); return this; }
public String getEntryUrl(FeedItem item) { return item.getBuild().getUrl()+"changes#detail"+item.idx; }
private void setUrl() { message.setUrl(String.format("%s%s", baseUrl, build.getUrl()), "Go to build"); }
public String getEntryUrl(FeedItem item) { return item.getBuild().getUrl() + "changes#detail" + item.idx; }
public String getEntryUrl(FeedItem item) { return item.getBuild().getUrl() + "changes#detail" + item.idx; }
public String getEntryUrl(FeedItem item) { return item.getBuild().getUrl()+"changes#detail"+item.idx; }
private String resolveTaskLink(Status taskStatus, AbstractBuild build) { String taskLink = this.getLink(); if (build != null && !taskStatus.isIdle() && !taskStatus.isQueued()) { if (taskStatus.isRunning()) { taskLink = build.getUrl() + "console"; } else { taskLink = build.getUrl(); } } return taskLink; }
/** * Returns the absolute URL to the build, if rootUrl has been configured. * If not, returns the build number. * * @param build the current Jenkins build. * @return the absolute URL for this build, or the a string containing the * build number. */ private String getBuildUrl(AbstractBuild<?, ?> build) { Hudson hudson = Hudson.getInstance(); String rootUrl = hudson.getRootUrl(); if (rootUrl == null) { return "Jenkins Build #" + build.number; } else { return hudson.getRootUrl() + build.getUrl(); } }
/** * Appends build URL to the builder. * * @param build build. * @param buf {@link StringBuilder}. */ protected void appendBuildUrl(AbstractBuild<?, ?> build, StringBuilder buf) { appendUrl(Util.encode(build.getUrl()) + (build.getChangeSet().isEmptySet() ? "" : "changes"), buf); }
/** * Appends build URL to the builder. * * @param build build. * @param buf {@link StringBuilder}. */ protected void appendBuildUrl(AbstractBuild<?, ?> build, StringBuilder buf) { appendUrl(Util.encode(build.getUrl()) + (build.getChangeSet().isEmptySet() ? "" : "changes"), buf); }
/** * Appends build URL to the builder. * * @param build build. * @param buf {@link StringBuilder}. */ protected void appendBuildUrl(AbstractBuild<?, ?> build, StringBuilder buf) { appendUrl(Util.encode(build.getUrl()) + (build.getChangeSet().isEmptySet() ? "" : "changes"), buf); }
/** * Appends build URL to the builder. * * @param build build. * @param buf {@link StringBuilder}. */ protected void appendBuildUrl(AbstractBuild<?, ?> build, StringBuilder buf) { appendUrl(Util.encode(build.getUrl()) + (build.getChangeSet().isEmptySet() ? "" : "changes"), buf); }
@Override public String getUrl() { return getTarget().getUrl() + "promotion/" + getParent().getName() + "/promotionBuild/" + getNumber() + "/"; }
private void generateUrl() { AbstractBuild<?,?> build = o.getOwner(); String buildLink = build.getUrl(); String actionUrl = o.getTestResultAction().getUrlName(); this.url = Hudson.getInstance().getRootUrl() + buildLink + actionUrl + o.getUrl(); }
private void generateUrl() { AbstractBuild<?, ?> build = o.getOwner(); String buildLink = build.getUrl(); String actionUrl = o.getTestResultAction().getUrlName(); this.url = Hudson.getInstance().getRootUrl() + buildLink + actionUrl + o.getUrl(); }
private void generateUrl() { AbstractBuild<?, ?> build = o.getOwner(); String buildLink = build.getUrl(); String actionUrl = o.getTestResultAction().getUrlName(); this.url = Hudson.getInstance().getRootUrl() + buildLink + actionUrl + o.getUrl(); }
private void generateUrl() { AbstractBuild<?,?> build = o.getOwner(); String buildLink = build.getUrl(); String actionUrl = o.getTestResultAction().getUrlName(); this.url = Hudson.getInstance().getRootUrl() + buildLink + actionUrl + o.getUrl(); }
private String getReferenceBuildUrl() { HtmlPrinter printer = new HtmlPrinter(); if (hasReferenceBuild()) { AbstractBuild<?, ?> build = getReferenceBuild(); printer.append(" "); printer.append("("); printer.append(Messages.ReferenceBuild()); printer.append(": "); printer.append(printer.link(Hudson.getInstance().getRootUrl() + "/" + build.getUrl(), build.getDisplayName())); printer.append(")"); } return printer.toString(); }