@Extension public static class Shell.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject data)
Invoked when the global configuration page is submitted.
|
FormValidation |
doCheckShell(String value)
Check the existence of sh in the given location.
|
String |
getDisplayName()
Human readable name of this kind of configurable object.
|
String |
getShell() |
String |
getShellOrDefault()
Deprecated.
|
String |
getShellOrDefault(hudson.remoting.VirtualChannel channel) |
boolean |
isApplicable(Class<? extends AbstractProject> jobType)
Returns true if this task is applicable to the given project.
|
void |
setShell(String shell) |
filteraddHelpFileRedirect, 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 boolean isApplicable(Class<? extends AbstractProject> jobType)
BuildStepDescriptorisApplicable in class BuildStepDescriptor<Builder>AbstractProject.AbstractProjectDescriptor.isApplicable(Descriptor)public String getShell()
@Deprecated public String getShellOrDefault()
getShellOrDefault(hudson.remoting.VirtualChannel).public String getShellOrDefault(hudson.remoting.VirtualChannel channel)
public void setShell(String shell)
public String getDisplayName()
DescriptorClass.getSimpleName() on Descriptor.clazz, so for example MyThing from some.pkg.MyThing.DescriptorImpl.
Historically some implementations returned null as a way of hiding the descriptor from the UI,
but this is generally managed by an explicit method such as isEnabled or isApplicable.getDisplayName in class Descriptor<Builder>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject data)
throws Descriptor.FormException
Descriptorconfigure in class Descriptor<Builder>data - The JSON object that captures the configuration data for this Descriptor.
See http://wiki.jenkins-ci.org/display/JENKINS/Structured+Form+SubmissionDescriptor.FormExceptionpublic FormValidation doCheckShell(@QueryParameter String value)
Copyright © 2019. All rights reserved.