sleep

Description

Stops the execution of the build script for a set period of time. Useful if certain steps require an interval before executing.

Parameters

Table7.Parameters

Attribute Type Description Required
hours int Number of hours to pause for. Default value is 0. false
minutes int Number of minutes to pause for. Default value is 0. false
seconds int Number of seconds to pause for. Default value is 0. false
milliseconds int Number of milliseconds to pause for. Default value is 0. false
if bool If true, the task will be executed, otherwise it will be skipped. The default is true. false
unless bool The opposite of if. If false, the task will be executed, otherwise it will be skipped. The default is false. false

Examples

Example9. Pausing build execution for 90 seconds.

Using the seconds attribute.

<sleep seconds="90" />

Using the minutes and seconds attributes.

<sleep minutes="1" seconds="30"/>