Class OctopusDeployReleaseRecorder.DescriptorImpl

    • Nested Class Summary

      • Nested classes/interfaces inherited from class hudson.model.Descriptor

        hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
    • Field Summary

      • Fields inherited from class hudson.model.Descriptor

        clazz
      • Fields inherited from interface hudson.model.Saveable

        NOOP
    • 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.tasks.BuildStepDescriptor

        filter
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • isApplicable

        public boolean isApplicable​(java.lang.Class<? extends hudson.model.AbstractProject> aClass)
        Specified by:
        isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
      • getDisplayName

        public java.lang.String getDisplayName()
        Overrides:
        getDisplayName in class hudson.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 name
        serverId - The id of OctopusDeployServer in the configuration.
        spaceId - The id of the space where to load this resource from
        Returns:
        ComboBoxModel