public class OpenShiftExec extends TimedOpenShiftBaseStep implements IOpenShiftExec
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenShiftExec.DescriptorImpl |
class |
OpenShiftExec.StepExecOutput |
ITimedOpenShiftPlugin.TimeoutUnitjenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Modifier and Type | Field and Description |
|---|---|
protected List<Argument> |
arguments |
protected String |
command |
protected String |
container |
private StringBuffer |
errorMessage |
private StringBuffer |
failureMessage |
private String |
LF |
protected String |
pod |
private StringBuffer |
stdErr |
private StringBuffer |
stdOut |
waitTime, waitUnitapiURL, auth, authToken, namespace, verboseDISPLAY_NAMEANNOTATION_FAILURE, BUILD_NUMBER, BUILD_URL_ANNOTATION, BUILD_URL_ENV_KEY, JOB_NAME, KUBERNETES_MASTER_ENV_KEY, KUBERNETES_SERVICE_HOST_ENV_KEY, KUBERNETES_SERVICE_PORT_ENV_KEY, NAMESPACE_ENV_VAR, NAMESPACE_FILE, NAMESPACE_SYNC_BUILD_CAUSE, STATE_CANCELLED, STATE_COMPLETE, STATE_ERROR, STATE_FAILED, STATE_RUNNING| Constructor and Description |
|---|
OpenShiftExec(String pod) |
| Modifier and Type | Method and Description |
|---|---|
List<Argument> |
getArguments() |
String |
getCommand() |
String |
getContainer() |
OpenShiftExecExecution.ExecResult |
getExecResult() |
String |
getPod() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project) |
Collection<? extends hudson.model.Action> |
getProjectActions(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
void |
onExecErr(String message) |
void |
onFailure(IOException e) |
void |
onStdErr(String message) |
void |
onStdOut(String message) |
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener) |
void |
setArguments(List<Argument> arguments) |
void |
setCommand(String command) |
void |
setContainer(String container) |
getWaitTime, getWaitUnit, setWaitTime, setWaitUnitgetApiURL, getAuth, getAuthToken, getBaseClassName, getNamespace, getVerbose, perform, perform, setApiURL, setAuth, setAuthToken, setNamespace, setVerboseprepareInjector, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcoreLogic, getArguments, getClient, getCommand, getContainer, getDisplayName, getGlobalTimeoutConfiguration, getPod, onClose, onOpengetTimeout, getWaitTime, getWaitUnitannotateJobInfoToResource, consolidateEnvVars, constructBuildUrl, didAllImagesChangeIfNeeded, didICTCauseDeployment, didImageChangeFromPreviousVersion, doesDCTriggerOnImageTag, doIt, doIt, doItCore, getApiURL, getApiURL, getAuth, getAuthToken, getAuthToken, getBaseClassName, getClient, getLatestReplicationController, getNamespace, getNamespace, getReplicationControllerState, getVerbose, getVerbose, httpGet, isBuildFinished, isBuildRunning, isDeployFinished, isReplicationControllerScaledAppropriately, setAuth, verifyBuildgetOverride, pruneKeyprotected String pod
protected String container
protected String command
private final String LF
private StringBuffer stdOut
private StringBuffer stdErr
private StringBuffer errorMessage
private StringBuffer failureMessage
@DataBoundConstructor public OpenShiftExec(String pod)
@DataBoundSetter public void setContainer(String container)
@DataBoundSetter public void setCommand(String command)
public String getPod()
getPod in interface IOpenShiftExecpublic String getContainer()
getContainer in interface IOpenShiftExecpublic String getCommand()
getCommand in interface IOpenShiftExecpublic List<Argument> getArguments()
getArguments in interface IOpenShiftExecpublic boolean prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
prebuild in interface hudson.tasks.BuildSteppublic hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction in interface hudson.tasks.BuildSteppublic Collection<? extends hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
getProjectActions in interface hudson.tasks.BuildSteppublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic void onStdOut(String message)
onStdOut in interface IOpenShiftExeconStdOut in interface com.openshift.restclient.api.capabilities.IPodExec.IPodExecOutputListenerpublic void onStdErr(String message)
onStdErr in interface IOpenShiftExeconStdErr in interface com.openshift.restclient.api.capabilities.IPodExec.IPodExecOutputListenerpublic void onExecErr(String message)
onExecErr in interface IOpenShiftExeconExecErr in interface com.openshift.restclient.api.capabilities.IPodExec.IPodExecOutputListenerpublic void onFailure(IOException e)
onFailure in interface IOpenShiftExeconFailure in interface com.openshift.restclient.api.capabilities.IPodExec.IPodExecOutputListenerpublic OpenShiftExecExecution.ExecResult getExecResult()
Copyright © 2004-2020 Red Hat, Inc. All Rights Reserved.