Package hudson.plugins.octopusdeploy
Class OctopusDeployDeploymentRecorder.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
-
- hudson.plugins.octopusdeploy.AbstractOctopusDeployRecorderPostBuildStep.AbstractOctopusDeployDescriptorImplPost
-
- hudson.plugins.octopusdeploy.OctopusDeployDeploymentRecorder.DescriptorImpl
-
- All Implemented Interfaces:
hudson.model.Saveable
,jenkins.util.io.OnMaster
- Enclosing class:
- OctopusDeployDeploymentRecorder
@Extension @Symbol("octopusDeployRelease") public static final class OctopusDeployDeploymentRecorder.DescriptorImpl extends AbstractOctopusDeployRecorderPostBuildStep.AbstractOctopusDeployDescriptorImplPost
Descriptor forOctopusDeployDeploymentRecorder
. Used as a singleton. The class is marked as public so that it can be accessed from views.
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description hudson.util.FormValidation
doCheckDeploymentTimeout(java.lang.String deploymentTimeout)
Check that the deployment timeout is valid.hudson.util.FormValidation
doCheckEnvironment(java.lang.String environment, java.lang.String serverId, java.lang.String spaceId)
Check that the environment field is not empty.hudson.util.FormValidation
doCheckProject(java.lang.String project, java.lang.String serverId, java.lang.String spaceId)
Check that the project field is not empty and is a valid project.hudson.util.FormValidation
doCheckReleaseVersion(java.lang.String releaseVersion, java.lang.String project, java.lang.String serverId, java.lang.String spaceId)
Check that the releaseVersion field is not empty.hudson.util.ComboBoxModel
doFillEnvironmentItems(java.lang.String serverId, java.lang.String spaceId)
Data binding that returns all possible environment names to be used in the environment autocomplete.hudson.util.ComboBoxModel
doFillProjectItems(java.lang.String serverId, java.lang.String spaceId)
Data binding that returns all possible project names to be used in the project autocomplete.hudson.util.ComboBoxModel
doFillTenantItems(java.lang.String serverId, java.lang.String spaceId)
Data binding that returns all possible tenant names to be used in the tenant autocomplete.hudson.util.ComboBoxModel
doFillTenantTagItems(java.lang.String serverId, java.lang.String spaceId)
Data binding that returns all possible tenant tags to be used in the tenant tag autocomplete.java.lang.String
getDisplayName()
boolean
isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> aClass)
-
Methods inherited from class hudson.plugins.octopusdeploy.AbstractOctopusDeployRecorderPostBuildStep.AbstractOctopusDeployDescriptorImplPost
configure, doCheckServerId, doFillServerIdItems, doFillSpaceIdItems, doFillToolIdItems, getApiByServerId, getDefaultOctopusDeployServerId, getDefaultOctopusToolId
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> aClass)
- Specified by:
isApplicable
in classhudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
-
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayName
in classhudson.model.Descriptor<hudson.tasks.Publisher>
-
doCheckProject
public hudson.util.FormValidation doCheckProject(@QueryParameter java.lang.String project, @QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Check that the project field is not empty and is a valid project.- Parameters:
project
- The name of the project.serverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- Ok if not empty, error otherwise.
-
doCheckDeploymentTimeout
public hudson.util.FormValidation doCheckDeploymentTimeout(@QueryParameter java.lang.String deploymentTimeout)
Check that the deployment timeout is valid.- Parameters:
deploymentTimeout
- The deployment timeout (TimeSpan).- Returns:
- Ok if not empty, error otherwise.
-
doCheckReleaseVersion
public hudson.util.FormValidation doCheckReleaseVersion(@QueryParameter java.lang.String releaseVersion, @QueryParameter java.lang.String project, @QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Check that the releaseVersion field is not empty.- Parameters:
releaseVersion
- The release version of the package.project
- The project nameserverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- Ok if not empty, error otherwise.
-
doCheckEnvironment
public hudson.util.FormValidation doCheckEnvironment(@QueryParameter java.lang.String environment, @QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Check that the environment field is not empty.- Parameters:
environment
- The name of the project.serverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- Ok if not empty, error otherwise.
-
doFillEnvironmentItems
public hudson.util.ComboBoxModel doFillEnvironmentItems(@QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Data binding that returns all possible environment names to be used in the environment autocomplete.- Parameters:
serverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- ComboBoxModel
-
doFillProjectItems
public hudson.util.ComboBoxModel doFillProjectItems(@QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Data binding that returns all possible project names to be used in the project autocomplete.- Parameters:
serverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- ComboBoxModel
-
doFillTenantItems
public hudson.util.ComboBoxModel doFillTenantItems(@QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Data binding that returns all possible tenant names to be used in the tenant autocomplete.- Parameters:
serverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- ComboBoxModel
-
doFillTenantTagItems
public hudson.util.ComboBoxModel doFillTenantTagItems(@QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Data binding that returns all possible tenant tags to be used in the tenant tag autocomplete.- Parameters:
serverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- ComboBoxModel
-
-