/** * Gets a tooltip from the item. * @return Tooltip or null if it cannot be retrieved. */ public @CheckForNull String getTooltip() { MatrixRun r = getRun(); if (r!=null) { return r.getIconColor().getDescription(); } final Jenkins jenkins = Jenkins.getInstance(); if (jenkins == null) { return null; } Queue.Item item = jenkins.getQueue().getItem(getParent().getItem(combination)); if(item!=null) return item.getWhy(); return null; // fall back } }
/** * Return the URL to the run that this pointer references. * * In the typical case, this creates {@linkplain #getShortUrl() a very short relative url}. * If the referenced run is a nearest previous build, this method returns a longer URL to that exact build. * {@link MatrixRun} which belongs to a given build {@link MatrixBuild}. * If there is no run which belongs to the build, return url of run, which belongs to the nearest previous build. */ public String getNearestRunUrl() { MatrixRun r = getRun(); if (r==null) return null; if (getNumber()==r.getNumber()) return getShortUrl()+'/'; else return Stapler.getCurrentRequest().getContextPath()+'/'+r.getUrl(); }
protected RunPtr getT(Combination c) { return new RunPtr(c); } };
protected RunPtr getT(Combination c) { return new RunPtr(c); } };
protected RunPtr getT(Combination c) { return new RunPtr(c); } };
protected RunPtr getT(Combination c) { return new RunPtr(c); } };
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
public String getTooltip() { MatrixRun r = getRun(); if (r != null) { return r.getIconColor().getDescription(); } Queue.Item item = Hudson.getInstance().getQueue().getItem(getParent().getItem(combination)); if (item != null) { return item.getWhy(); } return null; // fall back }
protected RunPtr getT(Combination c) { return new RunPtr(c); } };