/** * Alias for {@link #getDisplayName()}. */ @Exported(visibility=2) public final String getName() { return getDisplayName(); }
/** * @return the tooltip */ public String getTooltip() { return nodeLabel.getDisplayName(); } }
private String getMetricName(Label label, String method, String metric) { String labelText = (label == null) ? "nolabel" : label.getDisplayName(); return String.format("mesos.cloud.%s.%s.%s", labelText, method, metric); }
/** * Alias for {@link #getDisplayName()}. */ @Exported public final String getName() { return getDisplayName(); }
/** * Alias for {@link #getDisplayName()}. */ @Exported public final String getName() { return getDisplayName(); }
/** * Alias for {@link #getDisplayName()}. */ @Exported public final String getName() { return getDisplayName(); }
/** * Alias for {@link #getDisplayName()}. */ @Exported public final String getName() { return getDisplayName(); }
/** * Alias for {@link #getDisplayName()}. */ @Exported public final String getName() { return getDisplayName(); }
@Override public Action getAction(AbstractBuild<?, ?> build, TaskListener listener) throws IOException, InterruptedException, DontTriggerException { Node node = build.getBuiltOn(); Label nodeLabel; // master does not return a node name so add it explicitly. if(node == null) { nodeLabel = Jenkins.getInstance().getSelfLabel(); } else { nodeLabel = node.getSelfLabel(); } listener.getLogger().println("Returning node parameter for " + nodeLabel.getDisplayName()); return new NodeAction(nodeLabel); }
@SuppressWarnings("unused") // used by stapler public ComboBoxModel doFillLabelItems() { ComboBoxModel cbm = new ComboBoxModel(); Set<Label> labels = Jenkins.getInstance().getLabels(); for (Label label : labels) { cbm.add(label.getDisplayName()); } return cbm; }