public class SubmitJclBuilder extends SubmitJclBaseBuilder
| Modifier and Type | Class and Description |
|---|---|
static class |
SubmitJclBuilder.DescriptorImpl
DescriptorImpl is used to create instances of
SubmitJclBuilder. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
SubmitJclBuilder(String connectionId) |
SubmitJclBuilder(String connectionId,
String credentialsId,
String maxConditionCode,
String jcl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArguments(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.util.ArgumentListBuilder args)
Adds arguments to be sent to the CLI.
|
protected void |
cleanUp()
Handle clean up when finished builder execution.
|
SubmitJclBuilder.DescriptorImpl |
getDescriptor() |
String |
getJcl()
Gets the value of the 'JCL' statements.
|
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Performs the JCL Submit.
|
getConnectionId, getCredentialsId, getMaxConditionCodegetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic SubmitJclBuilder(String connectionId)
@DataBoundConstructor public SubmitJclBuilder(String connectionId, String credentialsId, String maxConditionCode, String jcl)
connectionId - a unique host connection identifiercredentialsId - unique id of the selected credentialmaxConditionCode - a maximum condition codejcl - the JCL statementspublic String getJcl()
String value of jclpublic SubmitJclBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.Builderprotected void addArguments(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.util.ArgumentListBuilder args)
throws IOException,
InterruptedException
SubmitJclBaseBuilderExtensions of this class should call this method to add their own arguments.
addArguments in class SubmitJclBaseBuilderrun - the current running Jenkins buildworkspace - the Jenkins job workspace directorylauncher - the way to start a processlistener - the build listenerargs - the argument list builder to add CLI arguments toIOException - if an error in the communication between VirtualChannels when attempting to get remote system properties.InterruptedException - if the current thread is interrupted while waiting for the completion of a call to get remote system properties.public void perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
SubmitJclBaseBuilderperform in interface jenkins.tasks.SimpleBuildStepperform in class SubmitJclBaseBuilderrun - the current running Jenkins buildworkspace - the Jenkins job workspace directorylauncher - the way to start a processlistener - the build listenerIOException - if an error in checking CLI compatibility, retrieving the environment or launching the CLI commandInterruptedException - if an error in checking CLI compatibility, retrieving the environment or launching the CLI commandprotected 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.