繁体   English   中英

Jenkins:如何为参数化作业设置时间表?

[英]Jenkins: How to set a schedule for a parametrized job?

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

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

如何正确地做到这一点?

答案在插件README中: parameterized-scheduler-plugin 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= ";"

又见这个“错误” - JENKINS-22129JENKINS - 53220更多

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM