public class ZOSJobSubmitter
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
ZOSJobSubmitter.ZOSJobSubmitterDescriptor
zOSJobSubmitterDescriptor
|
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
ZOSJobSubmitter(String server,
int port,
String credentialsId,
boolean wait,
int waitTime,
boolean deleteJobFromSpool,
boolean jobLogToConsole,
String jobFile,
String MaxCC,
boolean JESINTERFACELEVEL1,
boolean FTPActiveMode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCredentialsId() |
boolean |
getDeleteJobFromSpool()
Get deleteJobFromSpool.
|
ZOSJobSubmitter.ZOSJobSubmitterDescriptor |
getDescriptor()
Get descriptor for this class.
|
boolean |
getFTPActiveMode()
Get FTPActiveMode
|
boolean |
getJESINTERFACELEVEL1()
Get JESINTERFACELEVEL1.
|
String |
getJobFile() |
boolean |
getJobLogToConsole()
Get jobLogToConsole.
|
String |
getMaxCC() |
int |
getPort()
Get FTP port to connect to.
|
String |
getServer()
Get LPAR name of IP address.
|
boolean |
getWait()
Get wait.
|
int |
getWaitTime()
Get wait time.
|
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Submit the job for execution.
|
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild@DataBoundConstructor public ZOSJobSubmitter(String server, int port, String credentialsId, boolean wait, int waitTime, boolean deleteJobFromSpool, boolean jobLogToConsole, String jobFile, String MaxCC, boolean JESINTERFACELEVEL1, boolean FTPActiveMode)
MaxCC - Maximum allowed CC for job to be considered OK.server - LPAR name or IP address.port - FTP port to connect to.credentialsId - Credentials id..wait - Whether we need to wait for the job completion.waitTime - Maximum wait time. If set to 0 will wait forever.deleteJobFromSpool - Whether the job log will be deleted from the spool after end.jobLogToConsole - Whether the job log will be printed to console.jobFile - File with JCL of the job to be submitted.JESINTERFACELEVEL1 - Is FTP server configured for JESINTERFACELEVEL=1?FTPActiveMode - FTP data transfer mode (true=active, false=passive)public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws IOException
perform in interface jenkins.tasks.SimpleBuildSteprun - Current runworkspace - Current workspacelauncher - Current launcherlistener - Current listener
Always true if wait is false.
IOExceptionZFTPConnectorpublic String getServer()
serverpublic int getPort()
portpublic String getCredentialsId()
public String getJobFile()
public boolean getWait()
waitpublic boolean getJESINTERFACELEVEL1()
JESINTERFACELEVEL1public boolean getDeleteJobFromSpool()
deleteJobFromSpoolpublic boolean getJobLogToConsole()
jobLogToConsolepublic int getWaitTime()
waitTimepublic String getMaxCC()
MaxCC of the job to be considered OKpublic boolean getFTPActiveMode()
FTPActiveModepublic ZOSJobSubmitter.ZOSJobSubmitterDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016–2020. All rights reserved.