. Used as a singleton. The class is marked as public so that it can be
accessed from views.
See views/hudson/plugins/artifactory/ArtifactoryBuilder/*.jelly for the actual HTML fragment for the
Performs on-the-fly validation of the form field 'name'.
value This parameter receives the value that the user has typed.
- Indicates the outcome of the validation. This is sent to the browser.
return FormValidation.error("Please set a name");
return FormValidation.warning("Isn't the name too short?");
Most chances this validation won't work, since there no proper way to explicitly request either deployer or
resolver credentials from the global config form, so we can't check if we should use resolver or deployer
credentials when testing the connection to the server
return FormValidation.error("Please set a valid Artifactory URL");
client = new ArtifactoryBuildInfoClient(value, username, password, new NullLog());
client = new ArtifactoryBuildInfoClient(value, new NullLog());
version = client.verifyCompatibleArtifactoryVersion();
return FormValidation.ok("Found Artifactory " + version.toString());
This human readable name is used in the configuration screen.
return "Artifactory Plugin";