public static FormValidation warning(String message) { return warningWithMarkup(message==null?null:Util.escape(message)); }
public FormValidation doCheckURIEncoding(StaplerRequest request) throws IOException { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); // expected is non-ASCII String final String expected = "\u57f7\u4e8b"; final String value = fixEmpty(request.getParameter("value")); if (!expected.equals(value)) return FormValidation.warningWithMarkup(hudson.model.Messages.Hudson_NotUsesUTF8ToDecodeURL()); return FormValidation.ok(); } }
private FormValidation deprecatedSshProvisioning() { return FormValidation.warningWithMarkup( "Using SSH-based provisioning is deprecated and will be removed in a future version.<br/>" + "Please use cloud-init for provisioning a jenkins user"); }
public FormValidation doCheckInitScript( @QueryParameter String value, @QueryParameter String agentLaunchMethod) { if (StringUtils.isBlank(value)) { return FormValidation.warningWithMarkup(Messages.Azure_GC_InitScript_Warn_Msg()); } return FormValidation.ok(); }
public static FormValidation warning(String message) { return warningWithMarkup(message==null?null:Util.escape(message)); }
public FormValidation doCheckPropagate(@QueryParameter boolean value, @QueryParameter boolean wait) { if (!value && !wait) { return FormValidation.warningWithMarkup(Messages.BuildTriggerStep_explicitly_disabling_both_propagate_and_wait()); } return FormValidation.ok(); }
public static FormValidation warning(String message) { return warningWithMarkup(message==null?null:Util.escape(message)); }
public static FormValidation warning(String message) { return warningWithMarkup(message==null?null:Util.escape(message)); }
public static FormValidation warning(String message) { return warningWithMarkup(message == null ? null : Util.escape(message)); }
public static FormValidation warning(String message) { return warningWithMarkup(message==null?null:Util.escape(message)); }
/** * Checks if container uses UTF-8 to decode URLs. See * http://wiki.hudson-ci.org/display/HUDSON/Tomcat#Tomcat-i18n */ public FormValidation doCheckURIEncoding(StaplerRequest request) throws IOException { // expected is non-ASCII String final String expected = "\u57f7\u4e8b"; final String value = Util.fixEmpty(request.getParameter("value")); if (!expected.equals(value)) { return FormValidation.warningWithMarkup(Messages.Hudson_NotUsesUTF8ToDecodeURL()); } return FormValidation.ok(); }
/** * Checks if container uses UTF-8 to decode URLs. See * http://wiki.hudson-ci.org/display/HUDSON/Tomcat#Tomcat-i18n */ public FormValidation doCheckURIEncoding(StaplerRequest request) throws IOException { // expected is non-ASCII String final String expected = "\u57f7\u4e8b"; final String value = fixEmpty(request.getParameter("value")); if (!expected.equals(value)) { return FormValidation.warningWithMarkup(Messages.Hudson_NotUsesUTF8ToDecodeURL()); } return FormValidation.ok(); }
/** * Checks if container uses UTF-8 to decode URLs. See * http://wiki.hudson-ci.org/display/HUDSON/Tomcat#Tomcat-i18n */ public FormValidation doCheckURIEncoding(StaplerRequest request) throws IOException { // expected is non-ASCII String final String expected = "\u57f7\u4e8b"; final String value = fixEmpty(request.getParameter("value")); if (!expected.equals(value)) { return FormValidation.warningWithMarkup(Messages.Hudson_NotUsesUTF8ToDecodeURL()); } return FormValidation.ok(); }
/** * Checks if container uses UTF-8 to decode URLs. See * http://wiki.hudson-ci.org/display/HUDSON/Tomcat#Tomcat-i18n */ public FormValidation doCheckURIEncoding(StaplerRequest request) throws IOException { // expected is non-ASCII String final String expected = "\u57f7\u4e8b"; final String value = Util.fixEmpty(request.getParameter("value")); if (!expected.equals(value)) { return FormValidation.warningWithMarkup(Messages.Hudson_NotUsesUTF8ToDecodeURL()); } return FormValidation.ok(); }
return FormValidation.warningWithMarkup( "It is recommended to ensure references are always updated by prefixing with " + "<code>+</code>"
html.append("</pre>"); return FormValidation.warningWithMarkup(html.toString());
public FormValidation doCheckURIEncoding(StaplerRequest request) throws IOException { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); // expected is non-ASCII String final String expected = "\u57f7\u4e8b"; final String value = fixEmpty(request.getParameter("value")); if (!expected.equals(value)) return FormValidation.warningWithMarkup(hudson.model.Messages.Hudson_NotUsesUTF8ToDecodeURL()); return FormValidation.ok(); } }
return FormValidation.warningWithMarkup("Leaving blank <b>`Bind DN`</b> means that any operation performed will use anonymous binding. Keep in mind that this is not recommended as some servers <a href=\"https://support.microsoft.com/en-us/help/326690/anonymous-ldap-operations-to-active-directory-are-disabled-on-windows\">do not allow it by default.</a>");
@Override public FormValidation validateVersion(String name, String version) { if (!Items.XSTREAM2.toXML(scm).contains("${library." + name + ".version}")) { return FormValidation.warningWithMarkup("When using <b>" + getDescriptor().getDisplayName() + "</b>, you will need to include <code>${library." + Util.escape(name) + ".version}</code> in the SCM configuration somewhere."); } return FormValidation.okWithMarkup("Cannot validate default version with legacy SCM plugins via <b>" + getDescriptor().getDisplayName() + "</b>. Use " + Jenkins.getActiveInstance().getDescriptorByType(SCMSourceRetriever.DescriptorImpl.class).getDisplayName() + " if available."); }