From 4dcdebd78627f91c5b1a6d597a44a8362f2c5d41 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 26 Jun 2024 15:07:19 +0200 Subject: [PATCH] Let webhook pass on pipeline parsion error (#3829) --- server/pipeline/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pipeline/create.go b/server/pipeline/create.go index 127c3aa44..2692d1117 100644 --- a/server/pipeline/create.go +++ b/server/pipeline/create.go @@ -94,7 +94,7 @@ func Create(ctx context.Context, _store store.Store, repo *model.Repo, pipeline pipelineItems, parseErr := parsePipeline(_forge, _store, pipeline, repoUser, repo, forgeYamlConfigs, nil) if pipeline_errors.HasBlockingErrors(parseErr) { log.Debug().Str("repo", repo.FullName).Err(parseErr).Msg("failed to parse yaml") - return nil, updatePipelineWithErr(ctx, _forge, _store, pipeline, repo, repoUser, parseErr) + return pipeline, updatePipelineWithErr(ctx, _forge, _store, pipeline, repo, repoUser, parseErr) } else if parseErr != nil { pipeline.Errors = pipeline_errors.GetPipelineErrors(parseErr) }