Class ElectricFlowPipelinePublisher.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<Publisher>
org.jenkinsci.plugins.electricflow.ElectricFlowPipelinePublisher.DescriptorImpl
All Implemented Interfaces:
Saveable, OnMaster
Enclosing class:
ElectricFlowPipelinePublisher

@Symbol("cloudBeesFlowRunPipeline") @Extension public static final class ElectricFlowPipelinePublisher.DescriptorImpl extends BuildStepDescriptor<Publisher>
The class is marked as public so that it can be accessed from views.

See .jelly for the actual HTML fragment for the configuration screen.

  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
      In order to load the persisted global configuration, you have to call load() in the constructor.
  • Method Details

    • doCheckConfiguration

      public FormValidation doCheckConfiguration(@QueryParameter String value, @QueryParameter boolean validationTrigger, @AncestorInPath Item item)
    • doCheckPipelineName

      public FormValidation doCheckPipelineName(@QueryParameter String value, @QueryParameter boolean validationTrigger, @AncestorInPath Item item)
    • doCheckProjectName

      public FormValidation doCheckProjectName(@QueryParameter String value, @QueryParameter boolean validationTrigger, @AncestorInPath Item item)
    • doCheckAddParam

      public FormValidation doCheckAddParam(@QueryParameter String value, @QueryParameter boolean validationTrigger, @AncestorInPath Item item)
    • doCheckStagesToRun

      public FormValidation doCheckStagesToRun(@QueryParameter String value, @QueryParameter boolean validationTrigger, @AncestorInPath Item item)
    • doFillStartingStageItems

      public ListBoxModel doFillStartingStageItems(@QueryParameter String configuration, @QueryParameter boolean overrideCredential, @QueryParameter @RelativePath("overrideCredential") String credentialId, @QueryParameter String projectName, @QueryParameter String pipelineName, @AncestorInPath Item item) throws Exception
      Throws:
      Exception
    • doFillAddParamItems

      public ListBoxModel doFillAddParamItems(@QueryParameter String configuration, @QueryParameter boolean overrideCredential, @QueryParameter @RelativePath("overrideCredential") String credentialId, @QueryParameter String projectName, @QueryParameter String pipelineName, @QueryParameter String addParam, @AncestorInPath Item item)
    • doFillStagesToRunItems

      public ListBoxModel doFillStagesToRunItems(@QueryParameter String configuration, @QueryParameter boolean overrideCredential, @QueryParameter @RelativePath("overrideCredential") String credentialId, @QueryParameter String projectName, @QueryParameter String pipelineName, @QueryParameter String stagesToRun, @AncestorInPath Item item)
    • doFillConfigurationItems

      public ListBoxModel doFillConfigurationItems(@AncestorInPath Item item)
    • doFillCredentialIdItems

      public ListBoxModel doFillCredentialIdItems(@AncestorInPath Item item)
    • doFillPipelineNameItems

      public ListBoxModel doFillPipelineNameItems(@QueryParameter String projectName, @QueryParameter String configuration, @QueryParameter boolean overrideCredential, @QueryParameter @RelativePath("overrideCredential") String credentialId, @AncestorInPath Item item)
    • doFillProjectNameItems

      public ListBoxModel doFillProjectNameItems(@QueryParameter String configuration, @QueryParameter boolean overrideCredential, @QueryParameter @RelativePath("overrideCredential") String credentialId, @AncestorInPath Item item)
    • doHelp

      public void doHelp(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
      Overrides:
      doHelp in class Descriptor<Publisher>
      Throws:
      IOException
      javax.servlet.ServletException
    • doTestConnection

      public FormValidation doTestConnection()
    • getConfigurationByName

      public Configuration getConfigurationByName(String name)
    • getConfigurations

      public List<Configuration> getConfigurations()
    • getDisplayName

      public String getDisplayName()
      This human readable name is used in the configuration screen.
      Overrides:
      getDisplayName in class Descriptor<Publisher>
      Returns:
      this human readable name is used in the configuration screen.
    • getId

      public String getId()
      Overrides:
      getId in class Descriptor<Publisher>
    • isApplicable

      public boolean isApplicable(Class<? extends AbstractProject> aClass)
      Specified by:
      isApplicable in class BuildStepDescriptor<Publisher>
    • doShowOldValues

      public FormValidation doShowOldValues(@QueryParameter("configuration") String configuration, @QueryParameter("projectName") String projectName, @QueryParameter("pipelineName") String pipelineName, @QueryParameter("stageOption") String stageOption, @QueryParameter("startingStage") String startingStage, @QueryParameter("stagesToRun") String stagesToRun, @QueryParameter("addParam") String addParam, @QueryParameter("storedConfiguration") String storedConfiguration, @QueryParameter("storedProjectName") String storedProjectName, @QueryParameter("storedPipelineName") String storedPipelineName, @QueryParameter("storedStageOption") String storedStageOption, @QueryParameter("storedStartingStage") String storedStartingStage, @QueryParameter("storedStagesToRun") String storedStagesToRun, @QueryParameter("storedAddParam") String storedAddParam, @AncestorInPath Item item)