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 FormValidation
doAuthenticateUser(String username, String apiKey, String standaloneUrl)
FormValidation
doCheckApiKey(String apiKey)
FormValidation
doCheckUsername(String username)
String
getDisplayName()
boolean
isApplicable(AbstractProject<?,?> item)
CredentialsBuildWrapper
newInstance(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:
getDisplayName
in classDescriptor<BuildWrapper>
-
isApplicable
public boolean isApplicable(AbstractProject<?,?> item)
- Specified by:
isApplicable
in classBuildWrapperDescriptor
-
newInstance
public CredentialsBuildWrapper newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
newInstance
in 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)
-
-