詹金斯:如何为参数化的工作设定时间表



我想为参数化的Jenkins作业设置一个时间表,使其在不同的时间使用不同的参数开始,但我找不到正确的语法。我想要这样的东西:

30 1 * * * % VAR1=VALUE1, VAR2=VALUE2
30 2 * * * % VAR1=VALUE3, VAR2=VALUE4

如何正确操作?

答案在插件自述中:参数化调度程序插件README.md

# leave spaces where you want them around the parameters. They'll be trimmed.
# we let the build run with the default name
5 * * * * % furniture=chair;color=black
# now, let's override that default name and use Mr. Rubble.
10 * * * * % furniture=desk; color=yellow; name=barney

没有明确记录,但示例和代码显示它是PAIR_SEPARATOR= ";"

还参见这个";bug"-JENKINS-22129和JENKINS-53220及更多

最新更新