Title: Message Title
jared welch created an issue
Jenkins / JENKINS-39079
Timestamper plugin inserts encoded TimeStampNote when using in pipeline job
Issue Type:
Bug
Assignee:
Steven G Brown
Components:
timestamper-plugin
Created:
2016/Oct/18 8:29 PM
Environment:
Jenkins 2.7.4 Timestamp plugin 1.8.7
Priority:
Minor
Reporter:
jared welch
Although the source documentation indicates otherwise, it appears that the encoded timestamps are always being inserted directly into the console log files leading to difficulty parsing files from disk.
/**
* Time-stamp console note.
*
* These are inserted into the log file when:
*
* The build does not extend {@link AbstractBuild}, e.g. a pipeline job.
* Running the Timestamper plugin prior to version 1.4.
* The system property is set: ({@link #getSystemProperty()}). The is
* intended to support scripts that were written prior to Timestamper 1.4 to
* parse the log files. New scripts should query the {@code /timestamps} URL
* instead (see {@link TimestampsAction}).
*
*
* Otherwise, the time-stamps are stored in a separate file, which allows a more
* compact format to be used and avoids filling the log files with encoded
* console notes.
*
* @author Steven G. Brown
*/
Seem to indicate that a pipeline job using recent versions of the plugin should not have this issue. But the system property is checked as a boolean and since TimeStampNonte.getSystemProperty() always returns a string its always true.