Possible in Jenkins to add sleep time between build actions?

后端 未结 6 1632
Happy的楠姐
Happy的楠姐 2021-01-17 18:08

I am starting a JBoss server in Jenkins as a build action. The next action runs a set of tests. I need to add sleeptime between the two actions. Does anyone know how to do t

6条回答
  •  一生所求
    2021-01-17 18:42

    There is a built-in feature in Jenkins to put a sleep but it is not easy to find it because they call it differently.

    On the following screenshot

    screenshot

    You can see there is a Quiet period setting in the advanced project options that is "executed" before the current job (project).

    If you have 3 jobs you can as well set this setting for jobs 2 and 3 which will make:

    job1 -> (sleep -> job2) -> (sleep -> job3)
    

提交回复
热议问题