Uses of Class
hudson.util.FormValidation
Package
Description
Core object model that are bound to URLs via stapler, rooted at
Jenkins
.Boolean expression over labels.
Security-related code.
Code related to agents.
Built-in
Trigger
s that run periodically to kick a new build.Other miscellaneous utility code
-
Uses of FormValidation in hudson
Modifier and TypeMethodDescriptionPluginManager.doCheckPluginUrl
(org.kohsuke.stapler.StaplerRequest2 request, String value) ProxyConfiguration.DescriptorImpl.doCheckPort
(String value) ProxyConfiguration.DescriptorImpl.doCheckSecretPassword
(String value) PluginManager.doCheckUpdateSiteUrl
(org.kohsuke.stapler.StaplerRequest2 request, String value) ProxyConfiguration.DescriptorImpl.doCheckUserName
(String value) ProxyConfiguration.DescriptorImpl.doValidateProxy
(String testUrl, String name, int port, String userName, Secret password, String noProxyHost) static FormValidation
FilePath.validateFileMask
(FilePath path, String value) Short forvalidateFileMask(path, value, true)
static FormValidation
FilePath.validateFileMask
(FilePath path, String value, boolean caseSensitive) Shortcut forFilePath.validateFileMask(String,boolean,boolean)
witherrorIfNotExist
true, as the left-hand side can be null.FilePath.validateFileMask
(String value) Short forvalidateFileMask(value, true, true)
FilePath.validateFileMask
(String value, boolean errorIfNotExist) Short forvalidateFileMask(value, errorIfNotExist, true)
FilePath.validateFileMask
(String value, boolean errorIfNotExist, boolean caseSensitive) Checks the GLOB-style file mask.FilePath.validateRelativeDirectory
(String value) FilePath.validateRelativeDirectory
(String value, boolean errorIfNotExist) A convenience method overFilePath.validateRelativePath(String, boolean, boolean)
.FilePath.validateRelativePath
(String value, boolean errorIfNotExist, boolean expectingFile) Validates a relative file path from thisFilePath
. -
Uses of FormValidation in hudson.logging
Modifier and TypeMethodDescriptionLogRecorder.doCheckName
(String value, String level) Validate the name.LogRecorderManager.doCheckNewName
(String name) -
Uses of FormValidation in hudson.model
Modifier and TypeMethodDescriptionabstract FormValidation
AbstractProject.LabelValidator.check
(AbstractProject<?, ?> project, Label label) Deprecated.Check the use of the label within the specified context.protected FormValidation
ViewDescriptor.checkDisplayName
(View view, String value) Validation of the display name field.protected FormValidation
JDK.DescriptorImpl.checkHomeDirectory
(File value) Checks if the JAVA_HOME is a valid JAVA_HOME path.Deprecated.Validates the use of a label within a particular context.AbstractProject.AbstractProjectDescriptor.doCheckAssignedLabelString
(AbstractProject<?, ?> project, String value) ChoiceParameterDefinition.DescriptorImpl.doCheckChoices
(String value) Checks if parameterized build choices are valid.AbstractProject.AbstractProjectDescriptor.doCheckCustomWorkspace
(String customWorkspace) TopLevelItemDescriptor.doCheckDisplayNameOrNull
(TopLevelItem item, String value) ListView.DescriptorImpl.doCheckIncludeRegex
(String value) Checks if the include regular expression is valid.View.doCheckJobName
(String value) Makes sure that the given name is good as a job name.AbstractProject.AbstractProjectDescriptor.doCheckLabel
(AbstractProject<?, ?> project, String value) ComputerSet.doCheckName
(String value) Makes sure that the given name is good as an agent name.AbstractItem.doCheckNewName
(String newName) Called byAbstractItem.doConfirmRename(java.lang.String)
andrename.jelly
to validate renames.Slave.SlaveDescriptor.doCheckNumExecutors
(String value) Slave.SlaveDescriptor.doCheckRemoteFS
(String value) Performs syntactical check on the remote FS for agents.AbstractProject.doCheckRetryCount
(String value) Validates the retry count RegexTimeZoneProperty.DescriptorImpl.doCheckTimeZoneName
(String timeZoneName) Hudson.doFieldCheck
(String value, String type, String errorText, String warningText) Deprecated.as of 1.324 Either use client-side validation (e.g.UpdateSite.doVerifySignature()
MyViewsProperty.doViewExistsCheck
(String value, boolean exists) Checks if a private view with the given name exists.ProxyView.doViewExistsCheck
(String value) Fails if a global view with the given name does not exist.protected FormValidation
UpdateSite.updateData
(String json, boolean signatureCheck) UpdateSite.updateDirectlyNow()
Forces an update of the data file from the configured URL, irrespective of the last time the data was retrieved.UpdateSite.updateDirectlyNow
(boolean signatureCheck) DownloadService.Downloadable.updateNow()
static FormValidation
AbstractProject.AbstractProjectDescriptor.validateLabelExpression
(String value, AbstractProject<?, ?> project) Deprecated.UseLabelExpression.validate(String, Item)
instead.final FormValidation
UpdateSite.verifySignatureInternal
(net.sf.json.JSONObject o) Verifies the signature in the update center data file.Modifier and TypeMethodDescriptionUpdateCenter.updateAllSites()
Ensure that all UpdateSites are up to date, without requiring a user to browse to the instance.UpdateSite.updateDirectly()
Update the data file from the given URL if the file does not exist, or is otherwise due for update.UpdateSite.updateDirectly
(boolean signatureCheck) Deprecated. -
Uses of FormValidation in hudson.model.labels
Modifier and TypeMethodDescriptionstatic FormValidation
Validates a label expression.static FormValidation
Validates a label expression. -
Uses of FormValidation in hudson.security
Modifier and TypeMethodDescriptionHudsonPrivateSecurityRealm.DescriptorImpl.doCheckAllowsSignup
(boolean value) -
Uses of FormValidation in hudson.slaves
Modifier and TypeMethodDescriptionPerforms syntax check.NodeDescriptor.doCheckName
(String value) -
Uses of FormValidation in hudson.tasks
Modifier and TypeMethodDescriptionprotected FormValidation
Maven.MavenInstallation.DescriptorImpl.checkHomeDirectory
(File value) Checks if the MAVEN_HOME is valid.BuildTrigger.DescriptorImpl.doCheck
(AbstractProject project, String value) Form validation method.Fingerprinter.DescriptorImpl.doCheck
(AbstractProject project, String value) Deprecated.ArtifactArchiver.DescriptorImpl.doCheckArtifacts
(AbstractProject project, String value, String caseSensitive) Performs on-the-fly validation of the file mask wildcard, when the artifacts textbox or the caseSensitive checkbox are modifiedShell.DescriptorImpl.doCheckShell
(String value) Check the existence of sh in the given location.Fingerprinter.DescriptorImpl.doCheckTargets
(AbstractProject<?, ?> project, String value) BatchFile.DescriptorImpl.doCheckUnstableReturn
(String value) Performs on-the-fly validation of the errorlevel.Shell.DescriptorImpl.doCheckUnstableReturn
(String value) Performs on-the-fly validation of the exit code. -
Uses of FormValidation in hudson.tools
Modifier and TypeMethodDescriptionprotected FormValidation
ToolDescriptor.checkHomeDirectory
(File home) May be overridden to provide tool-specific validation of a tool home directory.AbstractCommandInstaller.Descriptor.doCheckCommand
(String value) ToolDescriptor.doCheckHome
(File value) Checks if the home directory is valid.ToolInstallerDescriptor.doCheckLabel
(String value) ToolDescriptor.doCheckName
(String value) Checks if the tool name is valid.AbstractCommandInstaller.Descriptor.doCheckToolHome
(String value) ZipExtractionInstaller.DescriptorImpl.doCheckUrl
(String value) -
Uses of FormValidation in hudson.triggers
Modifier and TypeMethodDescriptionSCMTrigger.DescriptorImpl.doCheckPollingThreadCount
(String value) SCMTrigger.DescriptorImpl.doCheckScmpoll_spec
(String value, boolean ignorePostCommitHooks, Item item) Performs syntax check.TimerTrigger.DescriptorImpl.doCheckSpec
(String value, Item item) Performs syntax check. -
Uses of FormValidation in hudson.util
Modifier and TypeMethodDescriptionstatic FormValidation
FormValidation.aggregate
(Collection<FormValidation> validations) Aggregate multiple validations into one.protected abstract FormValidation
FormValidation.URLCheck.check()
Implement the actual form validation logic, by using other convenience methods defined in this class.static FormValidation
Sends out a string error message that indicates an error.static FormValidation
Sends out a string error message that indicates an error, by formatting it withString.format(String, Object[])
static FormValidation
Sends out a string error message, with optional "show details" link that expands to the full stack trace.static FormValidation
static FormValidation
FormValidation.errorWithMarkup
(String message) Sends out an HTML fragment that indicates an error.protected FormValidation
FormValidation.URLCheck.handleIOException
(String url, IOException e) Calls theerror(String)
method with a reasonable error message.static FormValidation
FormValidation.ok()
static FormValidation
static FormValidation
static FormValidation
FormValidation.okWithMarkup
(String message) static FormValidation
FormValidation.respond
(FormValidation.Kind kind, String html) Sends out an arbitrary HTML fragment as the output.abstract FormValidation
static FormValidation
FormValidation.validateBase64
(String value, boolean allowWhitespace, boolean allowEmpty, String errorMessage) Makes sure that the given string is a base64 encoded text.static FormValidation
FormValidation.validateExecutable
(String exe) Makes sure that the given string points to an executable file.static FormValidation
FormValidation.validateExecutable
(String exe, FormValidation.FileValidator exeValidator) Makes sure that the given string points to an executable file.static FormValidation
FormValidation.validateIntegerInRange
(String value, int lower, int upper) Make sure that the given string is an integer in the range specified by the lower and upper bounds (both inclusive)static FormValidation
FormValidation.validateNonNegativeInteger
(String value) Makes sure that the given string is a non-negative integer.static FormValidation
FormValidation.validatePositiveInteger
(String value) Makes sure that the given string is a positive integer.static FormValidation
FormValidation.validateRequired
(String value) Makes sure that the given string is not null or empty.static FormValidation
static FormValidation
static FormValidation
static FormValidation
static FormValidation
FormValidation.warningWithMarkup
(String message) Modifier and TypeMethodDescriptionstatic FormValidation
FormValidation.aggregate
(Collection<FormValidation> validations) Aggregate multiple validations into one. -
Uses of FormValidation in jenkins.agents
-
Uses of FormValidation in jenkins.diagnostics
Modifier and TypeMethodDescriptionURICheckEncodingMonitor.doCheckURIEncoding
(org.kohsuke.stapler.StaplerRequest2 request) -
Uses of FormValidation in jenkins.model
Modifier and TypeMethodDescriptionJenkins.checkDisplayName
(String displayName, TopLevelItem item) Checks to see if the candidate displayName collides with any existing display names or project names in the items parent groupJenkinsLocationConfiguration.doCheckAdminAddress
(String value) Jenkins.doCheckDisplayName
(String displayName, String jobName) ProjectNamingStrategy.PatternProjectNamingStrategy.DescriptorImpl.doCheckNamePattern
(String value) Jenkins.DescriptorImpl.doCheckNumExecutors
(String value) Jenkins.doCheckURIEncoding
(org.kohsuke.stapler.StaplerRequest2 request) Deprecated.JenkinsLocationConfiguration.doCheckUrl
(String value) Checks the URL inglobal.jelly
Jenkins.doCheckViewName
(String value) Checks if a top-level view with the given name exists and make sure that the name is good as a view name.Jenkins.doDefaultJDKCheck
(org.kohsuke.stapler.StaplerRequest2 request, String value) If the user chose the default JDK, make sure we got 'java' in PATH.Jenkins.doViewExistsCheck
(String value) Deprecated.1.512 -
Uses of FormValidation in jenkins.model.labels
Modifier and TypeMethodDescriptionValidates the use of a label within a particular context. -
Uses of FormValidation in jenkins.security
Modifier and TypeMethodDescriptionResourceDomainConfiguration.doCheckUrl
(String resourceRootUrlString) -
Uses of FormValidation in jenkins.tasks.filters.impl
Modifier and TypeMethodDescriptionRetainVariablesLocalRule.DescriptorImpl.doCheckRetainCharacteristicEnvVars
(boolean value) -
Uses of FormValidation in jenkins.triggers
Modifier and TypeMethodDescriptionReverseBuildTrigger.DescriptorImpl.doCheckUpstreamProjects
(Job project, String value) -
Uses of FormValidation in jenkins.util
Modifier and TypeMethodDescriptionJSONSignatureValidator.verifySignature
(net.sf.json.JSONObject o) Verifies the signature in the update center data file.