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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
protected static interface
protected static interface
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconsolidateEnvVars
(TaskListener listener, AbstractBuild<?, ?> build, Launcher launcher) protected ClusterConfig
getCluster
(Map<String, String> overrides) getClusterName
(Map<String, String> overrides) getCredentialsId
(Map<String, String> overrides) getLogLevel
(Map<String, String> overrides) static String
getOverride
(String key, Map<String, String> overrides) getProject
(Map<String, String> overrides) protected boolean
static String
protected boolean
runOcCommand
(AbstractBuild build, TaskListener listener, String verb, List verbArgs, List userArgs, List options, BaseStep.OcProcessRunner runner) void
setAdvancedArguments
(List<AdvancedArgument> advancedArguments) void
setClusterName
(String clusterName) void
setCredentialsId
(String credentialsId) void
setLogLevel
(String logLevel) void
setProject
(String project) protected boolean
standardRunOcCommand
(AbstractBuild build, TaskListener listener, String verb, List verbArgs, List userArgs, List options) static boolean
withTempInput
(String prefix, String content, BaseStep.WithTempInputRunnable runnable) 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 Details
-
DEFAULT_LOGLEVEL
- See Also:
-
-
Constructor Details
-
BaseStep
public BaseStep()
-
-
Method Details
-
setClusterName
-
getClusterName
-
getClusterName
-
setProject
-
getProject
-
getProject
-
getCredentialsId
-
getCredentialsId
-
setCredentialsId
-
getLogLevel
-
getLogLevel
-
isVerbose
protected boolean isVerbose() -
setLogLevel
-
getAdvancedArguments
-
setAdvancedArguments
-
getCluster
-
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) -
pruneKey
-
getOverride
-
toList
-
withTempInput
public static boolean withTempInput(String prefix, String content, BaseStep.WithTempInputRunnable runnable) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-