public abstract class SubmitJclBaseBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Modifier | Constructor and Description |
---|---|
|
SubmitJclBaseBuilder() |
protected |
SubmitJclBaseBuilder(String connectionId)
Constructor.
|
protected |
SubmitJclBaseBuilder(String connectionId,
String credentialsId,
String maxConditionCode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract 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.
|
String |
getConnectionId()
Gets the unique identifier of the 'Host connection'.
|
String |
getCredentialsId()
Gets the value of the 'Login credentials'.
|
String |
getMaxConditionCode()
Gets the value of the 'Maximum Condition Code'.
|
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Performs the JCL Submit.
|
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
public SubmitJclBaseBuilder()
protected SubmitJclBaseBuilder(String connectionId)
connectionId
- a unique host connection identifierpublic String getConnectionId()
String
value of connectionIdpublic String getCredentialsId()
String
value of credentialsIdpublic String getMaxConditionCode()
String
value of maxConditionCodepublic 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
run
- 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 abstract void addArguments(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.util.ArgumentListBuilder args) throws IOException, InterruptedException
Extensions of this class should call this method to add their own arguments.
run
- 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 VirtualChannel
s 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.Copyright © 2016–2022. All rights reserved.