hudson.plugins.timestamper
public final class TimestampNote extends hudson.console.ConsoleNote<Object>
The time-stamps are now stored in a separate file, which allows a more compact format to be used. Having the timestamps in the console log file was also inconvenient when reading the file in a text editor.
It is possible to restore the old behaviour of inserting console notes by
setting a system property: getSystemProperty(). This will allow
scripts which expect to find the time-stamps within the console log file to
continue working. New scripts should rely on the page served by
TimestampsAction instead.
| Constructor and Description |
|---|
TimestampNote(long millisSinceEpoch)
Create a new
TimestampNote. |
| Modifier and Type | Method and Description |
|---|---|
hudson.console.ConsoleAnnotator<Object> |
annotate(Object context,
hudson.MarkupText text,
int charPos) |
static String |
getSystemProperty()
Get the system property which will cause these console notes to be inserted
into the console log file.
|
Timestamp |
getTimestamp(hudson.model.Run<?,?> build)
Get the time-stamp recorded by this console note.
|
public TimestampNote(long millisSinceEpoch)
TimestampNote.millisSinceEpoch - milliseconds since the epochpublic static String getSystemProperty()
public Timestamp getTimestamp(hudson.model.Run<?,?> build)
build - the buildCopyright © 2004-2015. All Rights Reserved.