Class AbstractFileParameterValue
java.lang.Object
hudson.model.ParameterValue
io.jenkins.plugins.file_parameters.AbstractFileParameterValue
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Base64FileParameterValue
,StashedFileParameterValue
Implement either
open(hudson.model.Run<?, ?>)
and/or createTempFile(hudson.model.Run<?, ?>, hudson.FilePath, hudson.EnvVars, hudson.Launcher, hudson.model.TaskListener)
.- See Also:
-
Field Summary
Fields inherited from class hudson.model.ParameterValue
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) final String
protected InputStream
Methods inherited from class hudson.model.ParameterValue
buildEnvVars, buildEnvVars, createBuildWrapper, createVariableResolver, equals, getAssignedLabel, getDefinition, getDescription, getFormattedDescription, getName, getShortDescription, getValue, hashCode, isSensitive, setDescription
-
Constructor Details
-
AbstractFileParameterValue
-
-
Method Details
-
getFilename
-
open
- 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
- Overrides:
buildEnvironment
in classParameterValue
-