@Extension
public static final class VaultBuildWrapper.DescriptorImpl
extends hudson.model.Descriptor<hudson.tasks.BuildWrapper>
VaultBuildWrapper. Used as a singleton. The class is marked as public so
that it can be accessed from views.
See src/main/resources/com/datapipe/jenkins/vault/VaultBuildWrapper/*.jelly for the actual HTML fragment for the configuration screen.
| Constructor and Description |
|---|
DescriptorImpl()
In order to load the persisted global configuration, you have to call load() in the
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.Secret |
getAuthToken() |
String |
getDisplayName()
This human readable name is used in the configuration screen.
|
String |
getVaultUrl() |
boolean |
isApplicable(hudson.model.AbstractProject<?,?> item) |
void |
setAuthToken(String authToken) |
void |
setVaultUrl(String vaultUrl) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic DescriptorImpl()
public boolean isApplicable(hudson.model.AbstractProject<?,?> item)
public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>hudson.model.Descriptor.FormExceptionpublic String getVaultUrl()
public hudson.util.Secret getAuthToken()
public void setVaultUrl(String vaultUrl)
public void setAuthToken(String authToken)
Copyright © 2016–2017 Datapipe, Inc.. All rights reserved.