public class ZAdviserDownloadData
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
ZAdviserDownloadData.DescriptorImpl
DescriptorImpl is used to create instances of
ZAdviserDownloadData . |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
ZAdviserDownloadData(String connectionId,
String credentialsId,
String jcl,
String encryptedDataFile,
String unencryptedDataFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp()
Handle clean up when finished builder execution.
|
String |
getConnectionId()
Gets the value of the connectionId attribute.
|
String |
getCredentialsId()
Gets the value of the credentialsId attribute.
|
ZAdviserDownloadData.DescriptorImpl |
getDescriptor() |
String |
getEncryptedDataFile()
Gets the value of the encryptedDataFile attribute.
|
String |
getJcl()
Gets the value of the jcl attribute.
|
String |
getUnencryptedDataFile()
Gets the value of the unencryptedDataFile attribute.
|
boolean |
isEncryptData()
Returns the value of the encryptData attribute.
|
boolean |
isUploadData()
Returns the value of the uploadData attribute.
|
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setEncryptData(boolean encryptData)
Sets the encryptData attribute.
|
void |
setUploadData(boolean uploadData)
Sets the uploadData attribute.
|
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public ZAdviserDownloadData(String connectionId, String credentialsId, String jcl, String encryptedDataFile, String unencryptedDataFile)
connectionId
- a unique host connection identifiercredentialsId
- unique id of the selected credentialjcl
- the jcl used to instruct zAdviser to collectencryptedDataFile
- encrypted data fileunencryptedDataFile
- unencrypted data filepublic String getConnectionId()
String
value of connectionIdpublic String getCredentialsId()
String
value of credentialsIdpublic String getJcl()
String
value of jclpublic String getEncryptedDataFile()
String
value of encryptedDataFilepublic String getUnencryptedDataFile()
String
value of unencryptedDataFilepublic boolean isEncryptData()
@DataBoundSetter public void setEncryptData(boolean encryptData)
encryptData
- the flag to encrypt datapublic boolean isUploadData()
@DataBoundSetter public void setUploadData(boolean uploadData)
uploadData
- the flag to upload datapublic ZAdviserDownloadData.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
public void perform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
perform
in interface jenkins.tasks.SimpleBuildStep
IOException
InterruptedException
protected void cleanUp() throws IOException, InterruptedException
A temporary JCL file is created during builder execution that is consumed by the CLI and is deleted when execution is finished.
IOException
- if unable to delete temporary JCL fileInterruptedException
- if unable to delete temporary JCL fileCopyright © 2016–2022. All rights reserved.