Class AbstractFileParameterValue
- java.lang.Object
-
- hudson.model.ParameterValue
-
- io.jenkins.plugins.file_parameters.AbstractFileParameterValue
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Base64FileParameterValue
,StashedFileParameterValue
public abstract class AbstractFileParameterValue extends ParameterValue
Implement eitheropen(hudson.model.Run<?, ?>)
and/orcreateTempFile(hudson.model.Run<?, ?>, hudson.FilePath, hudson.EnvVars, hudson.Launcher, hudson.model.TaskListener)
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class hudson.model.ParameterValue
name
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFileParameterValue(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildEnvironment(Run<?,?> build, EnvVars env)
protected FilePath
createTempFile(Run<?,?> build, FilePath tempDir, EnvVars env, Launcher launcher, TaskListener listener)
void
doDownload(Run<?,?> build, org.kohsuke.stapler.StaplerResponse rsp)
String
getFilename()
protected InputStream
open(Run<?,?> build)
-
Methods inherited from class hudson.model.ParameterValue
buildEnvVars, buildEnvVars, createBuildWrapper, createVariableResolver, equals, getAssignedLabel, getDefinition, getDescription, getFormattedDescription, getName, getShortDescription, getValue, hashCode, isSensitive, setDescription
-
-
-
-
Constructor Detail
-
AbstractFileParameterValue
protected AbstractFileParameterValue(String name)
-
-
Method Detail
-
getFilename
public final String getFilename()
-
open
protected InputStream open(@CheckForNull Run<?,?> build) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
createTempFile
protected FilePath createTempFile(@NonNull Run<?,?> build, @NonNull FilePath tempDir, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
doDownload
public void doDownload(@AncestorInPath Run<?,?> build, org.kohsuke.stapler.StaplerResponse rsp) throws Exception
- Throws:
Exception
-
buildEnvironment
public void buildEnvironment(Run<?,?> build, EnvVars env)
- Overrides:
buildEnvironment
in classParameterValue
-
-