我希望在Jenkins中使用参数化调度程序插件,以便使用cron运行多个作业,这些作业因参数而异。不幸的是,文档质量很差。有没有人能指导我如何使其实际运作?
参数化调度程序插件可用于定义将由cron传递到环境中的参数。让我们考虑一个例子:
# pass `group1` into the group parameter when this job is run by cron
H 0 * * 0 % group=group1
# pass `group2` into the group parameter when this job is run by cron
H 0 * * 2 % group=group2
# prints the value of group for this run
echo $group