如何评论 Jenkins 预定的构建脚本

How to comment Jenkins scheduled build scripts

我让 Jenkins 安排脚本在一周中的特定几天触发命令。

H 6 * * 1 MY_CMD1
H 6 * * 2 MY_CMD2
H 6 * * 3 MY_CMD3
H 6 * * 4 MY_CMD4

这将在相应的一天早上 6 点触发相应的命令。

我想在接下来的几周内跳过 H 6 * * 3 MY_CMD3。我该如何评论?

在行前加上“#”。

正如可以从“定期构建 | 计划”帮助 (?) 中收集到的那样:

Examples: 
# every fifteen minutes (perhaps at :07, :22, :37, :52)
H/15 * * * *
# every ten minutes in the first half of every hour (three times, perhaps at :04, :14, :24)
H(0-29)/10 * * * *

调度器继承了与crontab

相同的注释语法