public class UnZipStep
extends org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
UnZipStep.DescriptorImpl |
| Modifier and Type | Method and Description |
|---|---|
String |
getDir()
The relative path of the base directory to create the zip from.
|
String |
getGlob()
Ant style pattern
of files to extract from the zip.
|
String |
getZipFile()
The name/path of the zip file to extract.
|
boolean |
isRead()
Read the content of the files into a String instead of writing them to the workspace.
|
boolean |
isTest()
Test the integrity of the archive instead of extracting it.
|
void |
setDir(String dir)
The relative path of the base directory to create the zip from.
|
void |
setGlob(String glob)
Ant style pattern
of files to extract from the zip.
|
void |
setRead(boolean read)
Read the content of the files into a String instead of writing them to the workspace.
|
void |
setTest(boolean test)
Test the integrity of the archive instead of extracting it.
|
@DataBoundConstructor public UnZipStep(String zipFile) throws hudson.model.Descriptor.FormException
hudson.model.Descriptor.FormExceptionpublic String getZipFile()
public String getDir()
@DataBoundSetter public void setDir(String dir)
dir - the dirpublic String getGlob()
@DataBoundSetter public void setGlob(String glob)
glob - the include patternpublic boolean isTest()
getZipFile()) will be ignored.
The step will return true or false depending on the result
instead of throwing an exception.@DataBoundSetter public void setTest(boolean test)
getZipFile()) will be ignored.
The step will return true or false depending on the result
instead of throwing an exception.test - if the archive should just be tested or notpublic boolean isRead()
String version = unzip zipFile: 'example.zip', glob: 'version.txt', read: true@DataBoundSetter public void setRead(boolean read)
String version = unzip zipFile: 'example.zip', glob: 'version.txt', read: trueread - if the content should be read to a string instead of written to the workspaceCopyright © 2004-2016. All Rights Reserved.