Jenkins: build one job after another with some delay

前端 未结 4 1564
我在风中等你
我在风中等你 2020-12-14 17:01

I have 2 jobs in Jenkins: QA and Dev. In Dev job I checked \"Build after other projects are built\" option and set project name = QA so that QA job will be built after Dev

相关标签:
4条回答
  • 2020-12-14 17:42

    There is a "Quiet Period" option in the Advanced Project Options available. You can enter a value of 300 (its in seconds) to delay the start of the job by 5 mins.

    0 讨论(0)
  • 2020-12-14 17:49

    If you're using the REST api, you can add a url get value like this:

    http://jenkins/job/jobname/build?delay=4

    That will delay 4 seconds and start the job.

    0 讨论(0)
  • 2020-12-14 17:50

    I know the topic is quite old but in case sameone else is looking for an answer here it is. When using parametrized build remember to escape "&". You can replace it with: "%26" or put the whole URL in quotes. It will work. Please also remember to use delay as first parameter.

    0 讨论(0)
  • 2020-12-14 17:53

    To make it simpler with out worrying about trigger from URL using delay, there is a Jenkins plugin which helps to schedule the job on the fly with as much as delay you need (configurable when ever you are running build and supports parameterized builds as well). For more details please check Plugin Pags, GitHub

    0 讨论(0)
提交回复
热议问题