public class ZOSJobSubmitter
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
ZOSJobSubmitter.ZOSJobSubmitterDescriptor
zOSJobSubmitterDescriptor
Descriptor for ZOSJobSubmitter.
|
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
ZOSJobSubmitter(String server,
int port,
String userID,
String password,
boolean wait,
int waitTime,
boolean deleteJobFromSpool,
boolean jobLogToConsole,
String job,
String MaxCC,
boolean JESINTERFACELEVEL1)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDeleteJobFromSpool()
Get deleteJobFromSpool.
|
ZOSJobSubmitter.ZOSJobSubmitterDescriptor |
getDescriptor()
Get descriptor for this class.
|
boolean |
getJESINTERFACELEVEL1()
Get JESINTERFACELEVEL1.
|
String |
getJob()
Get Job.
|
boolean |
getJobLogToConsole()
Get jobLogToConsole.
|
String |
getMaxCC() |
String |
getPassword()
Get User Password.
|
int |
getPort()
Get FTP port to connect to.
|
String |
getServer()
Get LPAR name of IP address.
|
String |
getUserID()
Get UserID.
|
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 userID, String password, boolean wait, int waitTime, boolean deleteJobFromSpool, boolean jobLogToConsole, String job, String MaxCC, boolean JESINTERFACELEVEL1)
server - LPAR name or IP address.port - FTP port to connect to.userID - UserID.password - User password.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.job - JCL of the job to be submitted.JESINTERFACELEVEL1 - Is FTP server configured for JESINTERFACELEVEL=1?public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform in interface jenkins.tasks.SimpleBuildSteprun - Current runworkspace - Current workspacelauncher - Current launcherlistener - Current listener
Always true if wait is false.
InterruptedExceptionIOExceptionZFTPConnectorpublic String getServer()
serverpublic int getPort()
portpublic String getUserID()
userIDpublic String getPassword()
passwordpublic boolean getWait()
waitpublic boolean getJESINTERFACELEVEL1()
JESINTERFACELEVEL1public boolean getDeleteJobFromSpool()
deleteJobFromSpoolpublic boolean getJobLogToConsole()
jobLogToConsolepublic int getWaitTime()
waitTimepublic String getJob()
Jobpublic String getMaxCC()
MaxCC of the job to be considered OKpublic ZOSJobSubmitter.ZOSJobSubmitterDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016–2018. All rights reserved.