Possible in Jenkins to add sleep time between build actions?

后端 未结 6 1637
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:41

    It is possible to use sleep step in your Jenkins Pipeline. The step is included in Pipeline: Basic Steps.

    Example:

    steps {
      sleep time: 250, unit: 'MILLISECONDS'
    }
    

提交回复
热议问题