/** * Check that the environment field is not empty. * * @param environment The name of the project. * @return Ok if not empty, error otherwise. */ public FormValidation doCheckEnvironment(@QueryParameter String environment) { setGlobalConfiguration(); environment = environment.trim(); OctopusValidator validator = new OctopusValidator(api); return validator.validateEnvironment(environment); }