public String getShortDescription() { return Messages.Queue_WaitingForNextAvailableExecutorOn(label.getName()); } }
public AutoCompletionCandidates doAutoCompleteLabel(@QueryParameter String value) { AutoCompletionCandidates c = new AutoCompletionCandidates(); Set<Label> labels = Jenkins.getInstance().getLabels(); List<String> queries = new AutoCompleteSeeder(value).getSeeds(); for (String term : queries) { for (Label l : labels) { if (l.getName().startsWith(term)) { c.add(l.getName()); } } } return c; }
j.getRootUrl(), Util.escape(l.getName()), l.getUrl(), l.getNodes().size(), l.getClouds().size()) );
public String getShortDescription() { return Messages.Queue_WaitingForNextAvailableExecutorOn(label.getName()); } }
@Override public String getShortDescription() { return Messages.Queue_AllNodesOffline(label.getName()); } }
@Override public String getShortDescription() { return Messages.Queue_WaitingForNextAvailableExecutorOn(label.getName()); } }
public String getShortDescription() { return Messages.Queue_AllNodesOffline(label.getName()); } }
public String getShortDescription() { return Messages.Queue_WaitingForNextAvailableExecutorOn(label.getName()); } }
public String getShortDescription() { return Messages.Queue_WaitingForNextAvailableExecutorOn(label.getName()); } }
public String getShortDescription() { return Messages.Queue_AllNodesOffline(label.getName()); } }
public String getShortDescription() { return Messages.Queue_AllNodesOffline(label.getName()); } }
@Override public boolean canProvision(final Label label) { boolean result = fleet != null && (label == null || Label.parse(this.labelString).containsAll(label.listAtoms())); LOGGER.log(Level.FINE, "CanProvision called on fleet: \"" + this.labelString + "\" wanting: \"" + (label == null ? "(unspecified)" : label.getName()) + "\". Returning " + Boolean.toString(result) + "."); return result; }
public AutoCompletionCandidates doAutoCompleteLabel(@QueryParameter String value) { AutoCompletionCandidates c = new AutoCompletionCandidates(); Jenkins j = Jenkins.getInstance(); if (j != null) { for (Label label : j.getLabels()) { if (label.getName().startsWith(value)) { c.add(label.getName()); } } } return c; }
public AutoCompletionCandidates doAutoCompleteAssignedLabelString(@QueryParameter String value) { AutoCompletionCandidates c = new AutoCompletionCandidates(); Set<Label> labels = JenkinsHelper.getInstance().getLabels(); List<String> queries = new AutoCompleteSeeder(value).getSeeds(); for (String term : queries) { for (Label l : labels) { if (l.getName().startsWith(term)) { c.add(l.getName()); } } } return c; }
public AutoCompletionCandidates doAutoCompleteLabel(@QueryParameter String value) { AutoCompletionCandidates c = new AutoCompletionCandidates(); Set<Label> labels = Jenkins.getInstance().getLabels(); List<String> queries = new AutoCompleteSeeder(value).getSeeds(); for (String term : queries) { for (Label l : labels) { if (l.getName().startsWith(term)) { c.add(l.getName()); } } } return c; }
public AutoCompletionCandidates doAutoCompleteAssignedLabelString(@QueryParameter String value) { AutoCompletionCandidates c = new AutoCompletionCandidates(); Set<Label> labels = Hudson.getInstance().getLabels(); List<String> queries = new AutoCompleteSeeder(value).getSeeds(); for (String term : queries) { for (Label l : labels) { if (l.getName().startsWith(term)) { c.add(l.getName()); } } } return c; } }
public void addLabels(Pod podToDeploy, PodDeploymentContext deploymentContext) { Map<String, String> podLabels = podToDeploy.getMetadata().getLabels(); final Label jobLabel = deploymentContext.getJobLabel(); if (jobLabel != null) { podLabels.put(ELASTICKUBE_COM_JENKINS_LABEL, jobLabel.getName() ); LOGGER.info("JobLabel [" + ELASTICKUBE_COM_JENKINS_LABEL + " = " + jobLabel.getName() + "] added to Pod "); } final String podName = podToDeploy.getMetadata().getName(); podLabels.put(ELASTICKUBE_COM_JENKINS_SLAVE, podName); LOGGER.info("Label [" + ELASTICKUBE_COM_JENKINS_SLAVE + " = " + podName + "] added to Pod "); podToDeploy.getMetadata().setLabels(podLabels); } }
protected boolean isBuildRunning(Label label) { boolean running = false; Job job = (Job) Hudson.getInstance().getItem(label.getName()); if (job != null) { Queue.Item item = job.getQueueItem(); if (item != null) running = true; } return running; }