public class FileParameterDefinition extends ParameterDefinition
ParameterDefinition
for doing file upload.
The file will be then placed into the workspace at the beginning of a build.
Modifier and Type | Class and Description |
---|---|
static class |
FileParameterDefinition.DescriptorImpl |
ParameterDefinition.ParameterDescriptor
ExtensionPoint.LegacyInstancesAreScopedToHudson
LIST
Constructor and Description |
---|
FileParameterDefinition(String name,
String description) |
Modifier and Type | Method and Description |
---|---|
ParameterValue |
createValue(CLICommand command,
String value)
Create a parameter value from the string given in the CLI.
|
ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req)
Create a parameter value from a GET with query string.
|
FileParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
Create a parameter value from a form submission.
|
boolean |
equals(Object obj) |
int |
hashCode() |
all, copyWithDefaultValue, getDefaultParameterValue, getDescription, getDescriptor, getFormattedDescription, getName, getType, isValid
public FileParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
ParameterDefinition
This method is invoked when the user fills in the parameter values in the HTML form and submits it to the server.
createValue
in class ParameterDefinition
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req)
ParameterDefinition
Unlike ParameterDefinition.createValue(StaplerRequest, JSONObject)
, this method is intended to support
the programmatic POST-ing of the build URL. This form is less expressive (as it doesn't support
the tree form), but it's more scriptable.
If a ParameterDefinition
can't really support this mode of creating a value,
you may just always return null.
createValue
in class ParameterDefinition
public ParameterValue createValue(CLICommand command, String value) throws IOException, InterruptedException
ParameterDefinition
createValue
in class ParameterDefinition
command
- This is the command that got the parameter.AbortException
- If the CLI processing should be aborted. Hudson will report the error message
without stack trace, and then exits this command. Useful for graceful termination.IOException
InterruptedException
public int hashCode()
hashCode
in class ParameterDefinition
public boolean equals(Object obj)
equals
in class ParameterDefinition
Copyright © 2004–2021. All rights reserved.