Class CommandUtils
java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.util.CommandUtils
Util class to for docker commands.
- Author:
- wzheng2310@gmail.com (Wei Zheng)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
addLatestTagIfNeeded
(String fullImageName) static String
imageFullNameFrom
(String registry, String repoAndImg, String tag) static void
logCommandResult
(InputStream inputStream, ConsoleLogger console, String errMessage) static void
logCommandResultStream
(InputStream inputStream, ConsoleLogger console, String errMessage) Log a streamed response that is not wrapped in JSONstatic long
sizeInBytes
(String size)
-
Constructor Details
-
CommandUtils
public CommandUtils()
-
-
Method Details
-
imageFullNameFrom
-
logCommandResult
public static void logCommandResult(InputStream inputStream, ConsoleLogger console, String errMessage) -
logCommandResultStream
public static void logCommandResultStream(InputStream inputStream, ConsoleLogger console, String errMessage) Log a streamed response that is not wrapped in JSON -
addLatestTagIfNeeded
-
sizeInBytes
-