@Extension public static class Shell.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
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) |
filter
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, toMap
public boolean isApplicable(Class<? extends AbstractProject> jobType)
BuildStepDescriptor
isApplicable
in class BuildStepDescriptor<Builder>
AbstractProject.AbstractProjectDescriptor.isApplicable(Descriptor)
public String getShell()
public String getShellOrDefault()
getShellOrDefault(hudson.remoting.VirtualChannel)
.public String getShellOrDefault(hudson.remoting.VirtualChannel channel)
public void setShell(String shell)
public String getDisplayName()
Descriptor
getDisplayName
in class Descriptor<Builder>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject data) throws Descriptor.FormException
Descriptor
configure
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.FormException
public FormValidation doCheckShell(@QueryParameter String value)
Copyright © 2016. All rights reserved.