Package io.jenkins.plugins.mergify
Class MergifyConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.mergify.MergifyConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,MergifyConfigurationProvider,Loadable,OnMaster
@Extension
public class MergifyConfiguration
extends GlobalConfiguration
implements MergifyConfigurationProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doCheckUrl(String value) doTestConnection(String value) static MergifyConfigurationget()getApiKeyForOrg(String organizationName) getUrl()protected HttpURLConnectionopenConnection(URL url) voidsave()voidsetOrgApiKeys(List<OrgApiKey> orgApiKeys) voidMethods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
Constructor Details
-
MergifyConfiguration
public MergifyConfiguration()
-
-
Method Details
-
get
-
getApiKeyForOrg
- Specified by:
getApiKeyForOrgin interfaceMergifyConfigurationProvider
-
getOrgApiKeys
-
setOrgApiKeys
-
getUrl
- Specified by:
getUrlin interfaceMergifyConfigurationProvider
-
setUrl
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
save
public void save()- Specified by:
savein interfaceSaveable- Overrides:
savein classDescriptor<GlobalConfiguration>
-
doCheckUrl
@POST public FormValidation doCheckUrl(@QueryParameter("url") String value) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
openConnection
- Throws:
IOException
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter("url") String value) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-