Class RepoScm.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<SCM>
hudson.scm.SCMDescriptor<RepoScm>
hudson.plugins.repo.RepoScm.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
RepoScm

@Extension public static class RepoScm.DescriptorImpl extends SCMDescriptor<RepoScm>
A DescriptorImpl contains variables used server-wide. In our263 case, we only store the path to the repo executable, which defaults to just "repo". This class also handles some Jenkins housekeeping.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
      Call the superclass constructor and load our configuration from the file system.
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<SCM>
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException
      Overrides:
      configure in class Descriptor<SCM>
      Throws:
      Descriptor.FormException
    • doExecutableCheck

      public FormValidation doExecutableCheck(@QueryParameter String value)
      Check that the specified parameter exists on the file system and is a valid executable.
      Parameters:
      value - A path to an executable on the file system.
      Returns:
      Error if the file doesn't exist, otherwise return OK.
    • getExecutable

      public String getExecutable()
      Returns the command to use when running repo. By default, we assume that repo is in the server's PATH and just return "repo".
    • isApplicable

      public boolean isApplicable(Job project)
      Overrides:
      isApplicable in class SCMDescriptor<RepoScm>