Jenkins - build.xml 中的哪个时间戳与配置规范时间规则相关?

Jenkins - Which timestamp in build.xml correlates to config spec time rule?

我有一个 Jenkins 设置,可以轮询 ClearCase 以进行更改。当看到更改时,它会使用时间戳规则修改视图的配置规范。我很好奇在哪里可以从作业 运行.

的 build.xml 中获取时间戳

在 ${JENKINS_HOME}/jobs//builds//build.xml 中,我看到一些引用时间的项目。

<buildTime>2017-09-29 20:12:13.647 UTC</buildTime>
<timestamp>1506715933647</timestamp>
<startTime>1506715933650</startTime>

哪个与配置规范中使用的时间戳相关?

Which one correlates to the timestamp being used in the config spec?

为此,需要查看配置规范。
但是假设配置规范使用 buildTime 元素中的日期,那么 timestamp (1506715933647) 是匹配 2017-09-29 20:12:13.647 UTC.

的纪元时间

在旧詹金斯中,BUILD_ID used to include the timestamp
现在,plugins need to set the BUILD_TIMESTAMP variable themselves.