Package hudson.plugins.repo
Class RepoScm.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<SCM>
-
- hudson.scm.SCMDescriptor<RepoScm>
-
- hudson.plugins.repo.RepoScm.DescriptorImpl
-
- 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.
-
-
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
repositoryBrowser
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
Call the superclass constructor and load our configuration from the file system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
FormValidation
doExecutableCheck(String value)
Check that the specified parameter exists on the file system and is a valid executable.String
getDisplayName()
String
getExecutable()
Returns the command to use when running repo.boolean
isApplicable(Job project)
-
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, incrementGeneration, isApplicable, isBrowserReusable, load
-
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, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<SCM>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<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 classSCMDescriptor<RepoScm>
-
-