Class ClientCommandBuilder
java.lang.Object
com.openshift.jenkins.plugins.util.ClientCommandBuilder
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static enum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString
(boolean redacted) String[]
asStringArray
(boolean redacted) buildCommand
(boolean redacted) Builds the command line to invoke.static String[]
fixPathInCommandArray
(String[] command, EnvVars envVars, TaskListener listener, FilePath filePath, Launcher launcher, boolean verbose) static ClientCommandBuilder.OsType
boolean
-
Field Details
-
server
-
project
-
skipTLSVerify
public final boolean skipTLSVerify -
caPath
-
verb
-
advArgs
-
verbArgs
-
userArgs
-
options
-
token
-
logLevel
public final int logLevel -
streamStdOutToConsolePrefix
public final boolean streamStdOutToConsolePrefix
-
-
Constructor Details
-
ClientCommandBuilder
-
-
Method Details
-
getOsFromPlatform
-
fixPathInCommandArray
public static String[] fixPathInCommandArray(String[] command, EnvVars envVars, TaskListener listener, FilePath filePath, Launcher launcher, boolean verbose) throws IOException, InterruptedException, RuntimeException -
buildCommand
Builds the command line to invoke.- Parameters:
redacted
- Requests the command line be constructed for logging purposes. Sensitive information will be stripped. Verbose information wil be stripped unless we are in logLevel mode.- Returns:
- A list of command line arguments for the 'oc' command.
-
asString
-
asStringArray
-
wrapperInQuotes
public boolean wrapperInQuotes()
-