gitsrht-update-hook: Don't exit on build submission failure

Right now the postUpdate function exits early when it fails to submit
the build manifests. This prevents the function from other tasks like
delivering webhooks.
This commit is contained in:
Thorben Günther 2023-11-17 13:52:18 +01:00 committed by Simon Ser
parent 7922c6d097
commit 7325a149a0
1 changed files with 2 additions and 1 deletions

View File

@ -330,7 +330,8 @@ func postUpdate() {
results, err := SubmitBuild(ctx, submitter)
if err != nil {
logger.Printf("Error submitting build job: %v", err)
log.Fatalf("Error submitting build job: %v", err)
log.Printf("Error submitting build job: %v", err)
continue
}
if len(results) == 0 {
continue