Package io.jenkins.plugins.kobiton
Class CredentialsBuildWrapperDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<BuildWrapper>
-
- hudson.tasks.BuildWrapperDescriptor
-
- io.jenkins.plugins.kobiton.CredentialsBuildWrapperDescriptor
-
@Symbol("credentialsBuildWrapper") @Extension public class CredentialsBuildWrapperDescriptor extends BuildWrapperDescriptor
-
-
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.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description CredentialsBuildWrapperDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidationdoAuthenticateUser(String username, String apiKey, String standaloneUrl)FormValidationdoCheckApiKey(String apiKey)FormValidationdoCheckUsername(String username)StringgetDisplayName()booleanisApplicable(AbstractProject<?,?> item)CredentialsBuildWrappernewInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayNamein classDescriptor<BuildWrapper>
-
isApplicable
public boolean isApplicable(AbstractProject<?,?> item)
- Specified by:
isApplicablein classBuildWrapperDescriptor
-
newInstance
public CredentialsBuildWrapper newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
newInstancein classDescriptor<BuildWrapper>- Throws:
Descriptor.FormException
-
doCheckUsername
public FormValidation doCheckUsername(@QueryParameter String username)
-
doCheckApiKey
public FormValidation doCheckApiKey(@QueryParameter String apiKey)
-
doAuthenticateUser
public FormValidation doAuthenticateUser(@QueryParameter("username") String username, @QueryParameter("apiKey") String apiKey, @QueryParameter("standaloneUrl") String standaloneUrl)
-
-