Package hudson.plugins.octopusdeploy
Class OctopusDeployReleaseRecorder.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
-
- hudson.plugins.octopusdeploy.AbstractOctopusDeployRecorderPostBuildStep.AbstractOctopusDeployDescriptorImplPost
-
- hudson.plugins.octopusdeploy.OctopusDeployReleaseRecorder.DescriptorImpl
-
- All Implemented Interfaces:
hudson.model.Saveable
,jenkins.util.io.OnMaster
- Enclosing class:
- OctopusDeployReleaseRecorder
@Extension @Symbol("octopusCreateRelease") public static final class OctopusDeployReleaseRecorder.DescriptorImpl extends AbstractOctopusDeployRecorderPostBuildStep.AbstractOctopusDeployDescriptorImplPost
Descriptor forOctopusDeployReleaseRecorder
. 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
doCheckChannel(java.lang.String channel, java.lang.String project, java.lang.String serverId, java.lang.String spaceId)
Check that the Channel field is either not set (default) or set to a real channel.hudson.util.FormValidation
doCheckEnvironment(java.lang.String environment, java.lang.String serverId, java.lang.String spaceId)
Check that the environment field is not empty, and represents a real environment.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 represents an actual project.hudson.util.FormValidation
doCheckReleaseNotesFile(java.lang.String releaseNotesFile)
Check that the releaseNotesFile field is not empty.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
doFillChannelItems(java.lang.String project, java.lang.String serverId, java.lang.String spaceId)
Data binding that returns all possible channels names to be used in the channel autocomplete.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.ListBoxModel
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 names to be used in the tenant 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 represents an actual 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:
- FormValidation message if not ok.
-
doCheckChannel
public hudson.util.FormValidation doCheckChannel(@QueryParameter java.lang.String channel, @QueryParameter java.lang.String project, @QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Check that the Channel field is either not set (default) or set to a real channel.- Parameters:
channel
- release channel.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.
-
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
- release version.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.
-
doCheckReleaseNotesFile
public hudson.util.FormValidation doCheckReleaseNotesFile(@QueryParameter java.lang.String releaseNotesFile)
Check that the releaseNotesFile field is not empty.- Parameters:
releaseNotesFile
- The path to the release notes file, relative to the WS.- 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, and represents a real environment.- Parameters:
environment
- The name of the environment.serverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- FormValidation message if not ok.
-
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:
- ListBoxModel
-
doFillTenantItems
public hudson.util.ListBoxModel 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:
- ListBoxModel
-
doFillTenantTagItems
public hudson.util.ComboBoxModel doFillTenantTagItems(@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
-
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
-
doFillChannelItems
public hudson.util.ComboBoxModel doFillChannelItems(@QueryParameter java.lang.String project, @QueryParameter java.lang.String serverId, @QueryParameter java.lang.String spaceId)
Data binding that returns all possible channels names to be used in the channel autocomplete.- Parameters:
project
- the project nameserverId
- The id of OctopusDeployServer in the configuration.spaceId
- The id of the space where to load this resource from- Returns:
- ComboBoxModel
-
-