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 Link icon

    • CommandUtils Link icon

      public CommandUtils()
  • Method Details Link icon

    • imageFullNameFrom Link icon

      public static String imageFullNameFrom(String registry, String repoAndImg, String tag)
    • logCommandResult Link icon

      public static void logCommandResult(InputStream inputStream, ConsoleLogger console, String errMessage)
    • logCommandResultStream Link icon

      public static void logCommandResultStream(InputStream inputStream, ConsoleLogger console, String errMessage)
      Log a streamed response that is not wrapped in JSON
    • addLatestTagIfNeeded Link icon

      public static String addLatestTagIfNeeded(String fullImageName)
    • sizeInBytes Link icon

      public static long sizeInBytes(String size)