The Timestamper plugin adds timestamps to the console output of Jenkins jobs. For example:
21:51:15 Started by user anonymous 21:51:15 Building on my-jenkins-agent 21:51:17 Finished: SUCCESS
Enable timestamps within the Build Environment section of the build’s configuration page.
To enable timestamps for multiple builds at once, use the Pipeline jobs
Set the global option to enable timestamps for all timestamps { // some block }
The timestamp format can be configured via the Manage Jenkins, Configure System page or through the a system property.
System time string formatting is controlled by a format string as defined in unclassified: timestamper: allPipelines: true elapsedTimeFormat: "'<b>'HH:mm:ss.S'</b>'" systemTimeFormat: "'<b>'HH:mm:ss'</b>'"
Scripts can read the timestamps from the /timestamps/ URL of each build.
For example:
/timestamps/By default, display the elapsed time in seconds with three places after the decimal point.
/timestamps/?time=HH:mm:ss&appendLogDisplay the system clock time and append the line from the log.
/timestamps/?elapsed=HH:mm:ss.S&appendLogDisplay the elapsed time and append the line from the log.
/timestamps/?time=HH:mm:ss&elapsed=HH:mm:ss.SDisplay both the system clock time and the elapsed time.
/timestamps/?currentTime&time=HH:mm:ssDisplay the current time on the Jenkins controller.
Supported query parameters:
timeDisplay the system clock time. Accepts the
timeZone and locale query parameters.
elapsedDisplay the elapsed time since the start of the build. Accepts the JDK TimeZone ID format.
localeSelect the locale to use when displaying the system clock time. Accepts a locale in the format recognized by
Report issues and enhancements in Changelog in GitHub since Timestamper plugin 1.10. Release notes for releases before 1.10 are recorded in the plugin repository Contributing
Licensed under the MIT License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。