@Override public String getShortDescription() { Executor e = build.getExecutor(); String eta = ""; if (e != null) { eta = Messages.BlockedBecauseOfBuildInProgress_ETA(e.getEstimatedRemainingTime()); } int lbn = build.getNumber(); return Messages.BlockedBecauseOfBuildInProgress_shortDescription(lbn, eta); }
@Override public String getDisplayName() { return Messages.BuildDiscarderProperty_displayName(); }
public String getShortDescription() { return Messages.CauseOfInterruption_ShortDescription(user); }
@Override public void checkName(String name) { if (StringUtils.isNotBlank(namePattern) && StringUtils.isNotBlank(name)) { if (!Pattern.matches(namePattern, name)) { throw new Failure(StringUtils.isEmpty(description) ? Messages.Hudson_JobNameConventionNotApplyed(name, namePattern) : description); } } }
@Override public String getDisplayName() { return Messages.DefaultProjectNamingStrategy_DisplayName(); }
@Override public String getDisplayName() { return jenkins.model.Messages.EnforceSlaveAgentPortAdministrativeMonitor_displayName(); }
@Override public String getDisplayName() { return Messages.DownloadSettings_Warning_DisplayName(); }
/** * Checks if a top-level view with the given name exists. * * @param value the name of the child. * @return the validation results. */ public FormValidation doViewExistsCheck(@QueryParameter String value) { checkPermission(View.CREATE); String view = fixEmpty(value); if (view == null) { return FormValidation.ok(); } if (getView(view) == null) { return FormValidation.ok(); } else { return FormValidation.error(jenkins.model.Messages.Hudson_ViewAlreadyExists(view)); } }
@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { Jenkins j = Jenkins.get(); try { // for compatibility reasons, this value is stored in Jenkins String num = json.getString("numExecutors"); if (!num.matches("\\d+")) { throw new FormException(Messages.Hudson_Computer_IncorrectNumberOfExecutors(),"numExecutors"); } j.setNumExecutors(json.getInt("numExecutors")); if (req.hasParameter("master.mode")) j.setMode(Mode.valueOf(req.getParameter("master.mode"))); else j.setMode(Mode.NORMAL); j.setLabelString(json.optString("labelString", "")); return true; } catch (IOException e) { throw new FormException(e,"numExecutors"); } } }
@Override public void checkName(String name) { if (StringUtils.isNotBlank(namePattern) && StringUtils.isNotBlank(name)) { if (!Pattern.matches(namePattern, name)) { throw new Failure(StringUtils.isEmpty(description) ? Messages.Hudson_JobNameConventionNotApplyed(name, namePattern) : description); } } }
@Override public String getDisplayName() { return Messages.DefaultProjectNamingStrategy_DisplayName(); }
@Override public String getDisplayName() { return jenkins.model.Messages.EnforceSlaveAgentPortAdministrativeMonitor_displayName(); }
@Override public String getDisplayName() { return Messages.DownloadSettings_Warning_DisplayName(); }
/** * Checks if a top-level view with the given name exists. * * @param value the name of the child. * @return the validation results. */ public FormValidation doViewExistsCheck(@QueryParameter String value) { checkPermission(View.CREATE); String view = fixEmpty(value); if (view == null) { return FormValidation.ok(); } if (getView(view) == null) { return FormValidation.ok(); } else { return FormValidation.error(jenkins.model.Messages.Hudson_ViewAlreadyExists(view)); } }
@Override public String getShortDescription() { Executor e = build.getExecutor(); String eta = ""; if (e != null) { eta = Messages.BlockedBecauseOfBuildInProgress_ETA(e.getEstimatedRemainingTime()); } int lbn = build.getNumber(); return Messages.BlockedBecauseOfBuildInProgress_shortDescription(lbn, eta); }
@Override public void print(TaskListener listener) { final User userInstance = getUser(); listener.getLogger().println( Messages.CauseOfInterruption_ShortDescription( userInstance != null ? ModelHyperlinkNote.encodeTo(userInstance) : user)); }
@Override public String getDisplayName() { return Messages.BuildDiscarderProperty_displayName(); }
public String getShortDescription() { return Messages.CauseOfInterruption_ShortDescription(user); }
@Override public void print(TaskListener listener) { final User userInstance = getUser(); listener.getLogger().println( Messages.CauseOfInterruption_ShortDescription( userInstance != null ? ModelHyperlinkNote.encodeTo(userInstance) : user)); }