Class BaseStep
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- com.openshift.jenkins.plugins.freestyle.BaseStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
- Direct Known Subclasses:
CreateStep
,DeleteStep
,RawStep
,WatchStep
public abstract class BaseStep extends Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseStep.BaseStepDescriptor
protected static interface
BaseStep.OcProcessRunner
protected static interface
BaseStep.WithTempInputRunnable
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_LOGLEVEL
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description BaseStep()
-
Method Summary
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
-
-
-
Field Detail
-
DEFAULT_LOGLEVEL
public static final String DEFAULT_LOGLEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
setClusterName
@DataBoundSetter public void setClusterName(String clusterName)
-
getClusterName
public String getClusterName()
-
setProject
@DataBoundSetter public void setProject(String project)
-
getProject
public String getProject()
-
getCredentialsId
public String getCredentialsId()
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(String credentialsId)
-
getLogLevel
public String getLogLevel()
-
isVerbose
protected boolean isVerbose()
-
setLogLevel
@DataBoundSetter public void setLogLevel(String logLevel)
-
getAdvancedArguments
public List<AdvancedArgument> getAdvancedArguments()
-
setAdvancedArguments
@DataBoundSetter public void setAdvancedArguments(List<AdvancedArgument> advancedArguments)
-
getCluster
protected ClusterConfig getCluster(Map<String,String> overrides)
-
runOcCommand
protected boolean runOcCommand(AbstractBuild build, TaskListener listener, String verb, List verbArgs, List userArgs, List options, BaseStep.OcProcessRunner runner) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
standardRunOcCommand
protected boolean standardRunOcCommand(AbstractBuild build, TaskListener listener, String verb, List verbArgs, List userArgs, List options) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
consolidateEnvVars
protected Map<String,String> consolidateEnvVars(TaskListener listener, AbstractBuild<?,?> build, Launcher launcher)
-
withTempInput
public static boolean withTempInput(String prefix, String content, BaseStep.WithTempInputRunnable runnable) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-