public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
indent(String message,
int indent)
Method which adds a specified amount of tabs to the message string.
|
static void |
lineBreak(hudson.model.BuildListener listener)
Write a empty line to the logger.
|
static void |
loggerMessage(hudson.model.BuildListener listener,
int indent,
String message,
String... args)
Write a user specified message with injected values and specified indentation to the logger.
|
public static final String ZAP
public static void lineBreak(hudson.model.BuildListener listener)
listener
- of type BuildListener: the display log listener during the Jenkins job execution.public static void loggerMessage(hudson.model.BuildListener listener, int indent, String message, String... args)
listener
- of type BuildListener: the display log listener during the Jenkins job execution.indent
- of type int: the indentation of the log message to be displayed.message
- of type String: the message to be displayed in the log.args
- of type String...: the values to be injected into the messagepublic static String indent(String message, int indent)
message
- of type String: the message which will have tabs placed in front of it.indent
- of type int: the number of tabs to be placed in front of the message.Copyright © 2016–2017. All rights reserved.