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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddLatestTagIfNeeded(String fullImageName) static StringimageFullNameFrom(String registry, String repoAndImg, String tag) static voidlogCommandResult(InputStream inputStream, ConsoleLogger console, String errMessage) static voidlogCommandResultStream(InputStream inputStream, ConsoleLogger console, String errMessage) Log a streamed response that is not wrapped in JSONstatic longsizeInBytes(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
-