DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Jenkins中在预定时间执行带参数的Job


为了让带参数的Job可以在预定时间build, 首先给Jenkins安装 Parameterized Scheduler 插件,安装完插件后, 在Job的Build periodically with parameters里加上:

H H(3-6) 10 12 * % target_ip=prod1; deploy_type=production
H H(3-6) 10 12 * % target_ip=prod2; deploy_type=production

这里指定在每年的12月10日,凌晨3点到6点之间做两个build。



Published

Dec 16, 2016

Last Updated

Dec 16, 2016

Category

Tech

Tags

  • build 4
  • jenkins 26
  • parameters 1
  • schedule 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor