Page MenuHomePhabricator

Add command/arguments to allow a script to wait on build completion/failure
Closed, ResolvedPublicFeature

Description

As a user
I want to script creating a new build and then running a container using it
So I can reduce toil in my deployment pipeline.

Introduce some mechanism in the spirit of toolforge jobs run --wait that can be used to wait on the result of a build triggered by toolforge build start with the exit status of the waiting command linked to the success/failure of the build job itself. This would allow usage in a shell pipeline or other command and control script to run a job, restart a webservice, etc as a result of a build job.

$ toolforge build start --wait && webservice restart