Wait For Build Condition

Description

Wait until a condition will be met on a build.

Wait command is useful in case there is a need to wait for a desired status on a specific set of builds.

Command

codefresh wait <id..>

Arguments

Option Alias Default Description
id Build id

Options

Option Alias Default Description
–help Print help information
–status - s success Build status. required

Possible values:
- pending
- elected
- running
- error
- success
- terminating
- terminated
–debug - d Show debug output until the condition will be met
–timeout - t 30 Define a timeout for the wait operation in minutes

Examples

Wait until build “ID” will reach “success” status

codefresh wait ID

Wait until build “ID” will reach “terminated” status

codefresh wait ID --status=terminated

Wait until build “ID1” and build “ID2” will reach “success” status

codefresh wait ID1 ID2