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 Details

    • CommandUtils

      public CommandUtils()
  • Method Details

    • 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
    • addLatestTagIfNeeded

      public static String addLatestTagIfNeeded(String fullImageName)
    • sizeInBytes

      public static long sizeInBytes(String size)