Exit with status code 1 on failed package builds (#1926)
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
Rahul Bhati
parent
5a71a744d3
commit
04ce54938a
@@ -105,6 +105,9 @@ func (w *packageBuildWatcher) watch(ctx context.Context) {
|
||||
util.PrintPackageSummary(os.Stdout, &pkg)
|
||||
fmt.Printf("------\n")
|
||||
}
|
||||
if pkg.Status.BuildStatus == fv1.BuildStatusFailed {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
// if there are no builds running, we can stop polling
|
||||
|
||||
Reference in New Issue
Block a user