Class CommandUtils
- java.lang.Object
-
- org.jenkinsci.plugins.dockerbuildstep.util.CommandUtils
-
public class CommandUtils extends Object
Util class to for docker commands.- Author:
- wzheng2310@gmail.com (Wei Zheng)
-
-
Constructor Summary
Constructors Constructor Description CommandUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
imageFullNameFrom
public static String imageFullNameFrom(String registry, String repoAndImg, String tag)
-
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
-
sizeInBytes
public static long sizeInBytes(String size)
-
-