Package jenkins.plugins.git
Class GitHooksConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- jenkins.plugins.git.GitHooksConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,PersistentDescriptor
,Saveable
,Loadable
,OnMaster
@Extension @Symbol("gitHooks") @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class GitHooksConfiguration extends GlobalConfiguration implements PersistentDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISABLED_NIX
static String
DISABLED_WIN
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description GitHooksConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
configure(org.jenkinsci.plugins.gitclient.GitClient client)
static void
configure(org.jenkinsci.plugins.gitclient.GitClient client, boolean allowed)
static void
configure(org.jenkinsci.plugins.gitclient.GitClient client, boolean allowedOnController, boolean allowedOnAgents)
static GitHooksConfiguration
get()
GlobalConfigurationCategory
getCategory()
boolean
isAllowedOnAgents()
boolean
isAllowedOnController()
void
setAllowedOnAgents(boolean allowedOnAgents)
void
setAllowedOnController(boolean allowedOnController)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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
-
Methods inherited from interface hudson.model.PersistentDescriptor
load
-
-
-
-
Field Detail
-
DISABLED_WIN
public static final String DISABLED_WIN
- See Also:
- Constant Field Values
-
DISABLED_NIX
public static final String DISABLED_NIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
@NonNull public static GitHooksConfiguration get()
-
isAllowedOnController
public boolean isAllowedOnController()
-
setAllowedOnController
public void setAllowedOnController(boolean allowedOnController)
-
isAllowedOnAgents
public boolean isAllowedOnAgents()
-
setAllowedOnAgents
public void setAllowedOnAgents(boolean allowedOnAgents)
-
getCategory
@NonNull public GlobalConfigurationCategory getCategory()
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
configure
public static void configure(org.jenkinsci.plugins.gitclient.GitClient client) throws hudson.plugins.git.GitException, IOException, InterruptedException
- Throws:
hudson.plugins.git.GitException
IOException
InterruptedException
-
configure
public static void configure(org.jenkinsci.plugins.gitclient.GitClient client, boolean allowedOnController, boolean allowedOnAgents) throws hudson.plugins.git.GitException, IOException, InterruptedException
- Throws:
hudson.plugins.git.GitException
IOException
InterruptedException
-
configure
public static void configure(org.jenkinsci.plugins.gitclient.GitClient client, boolean allowed) throws hudson.plugins.git.GitException, IOException, InterruptedException
- Throws:
hudson.plugins.git.GitException
IOException
InterruptedException
-
-