网上很多方式比较片面,最新版插件直接使用即可无需更多操作。
使用方式如下:
1.安装插件 Timestamper

2.更新全局设置
系统设置-找到 Timestamper 勾选 Enabled for all Pipeline builds
也可修改时间戳格式。
帮助信息中显示
When checked, timestamps will be enabled for all Pipeline builds. There is no need to use the timestamps {...} step in Scripted, or the timestamps() option in Declarative.
已经无需再使用timestamps {...}步骤方式。
此时使用即可显示时间戳
