Exit with status code 1 on failed package builds (#1926)

Co-authored-by: Rahul Bhati <rjbhati009@gmail.com>
This commit is contained in:
Harsh Thakur
2021-02-04 21:57:38 +05:30
committed by GitHub
co-authored by Rahul Bhati
parent 1059e9873a
commit 045a365a1b
+3
View File
@@ -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