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