Package hudson.plugins.repo
Class RepoScm.DescriptorImpl
- Enclosing class:
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.scm.SCMDescriptor
repositoryBrowserFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsConstructorDescriptionCall the superclass constructor and load our configuration from the file system. -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doExecutableCheck(String value) Check that the specified parameter exists on the file system and is a valid executable.Returns the command to use when running repo.booleanisApplicable(Job project) Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, loadMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()Call the superclass constructor and load our configuration from the file system.
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<SCM>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classDescriptor<SCM>- Throws:
Descriptor.FormException
-
doExecutableCheck
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
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
- Overrides:
isApplicablein classSCMDescriptor<RepoScm>
-