Class TimestampsActionOutput
- java.lang.Object
-
- hudson.plugins.timestamper.action.TimestampsActionOutput
-
public class TimestampsActionOutput extends Object
Generate a page of time-stamps on behalf ofTimestampsAction
.Each line contains time-stamps for the equivalent line in the console log, and optionally includes the console log text.
By default, the elapsed time will be displayed in seconds, with three places after the decimal point. The output can be configured by providing the following query parameters. The output can include multiple time-stamp formats by providing multiple parameters.
- "precision": Display the elapsed time in seconds, with a certain number of places after the decimal point. Accepts a number of decimal places or values such as "seconds" and "milliseconds".
- "time": Display the system clock time. Accepts the
SimpleDateFormat
format. - "timeZone": Time zone used when displaying the system clock time. Accepts the
TimeZone
ID format. - "elapsed": Display the elapsed time since the start of the build. Accepts the
DurationFormatUtils
format. - "appendLog": Display the console log line after the time-stamp.
- "startLine": Display the time-stamps starting from a certain line. Accepts a positive integer to start at that line, or a negative integer to start that many lines back from the end.
- "endLine": Display the time-stamps ending at a certain line. Accepts a positive integer to finish at that line, or a negative integer to finish that many lines back from the end.
- "locale": Select the locale to use when displaying the system clock time.
- "currentTime": Display the current time instead of reading time-stamps from the build.
- Author:
- Steven G. Brown
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedReader
open(Run<?,?> build, TimestampsActionQuery query)
Open a reader which provides the page of time-stamps.
-
-
-
Method Detail
-
open
public static BufferedReader open(Run<?,?> build, TimestampsActionQuery query)
Open a reader which provides the page of time-stamps.- Returns:
- a
BufferedReader
-
-