Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit 8eed962

Browse files
authored
Troubleshoot not found commit on Promote pipeline (#137)
* Ignore get commit-id error for promote pipeline * Corrected error message
1 parent 3c16c1d commit 8eed962

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/pipeline/prepare_pipelines.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ func (ctx *pipelineContext) preparePipelinesJob() (*model.PrepareBuildContext, e
4848

4949
err = git.ResetGitHead(ctx.env.GetGitRepositoryWorkspace(), gitHash)
5050
if err != nil {
51+
if ctx.env.GetRadixPipelineType() == v1.Promote {
52+
log.Error().Msgf("Failed to find Git CommitID %s. Error: %v. Ignore the error for the Promote pipeline. If Sub-pipeline exists it is skipped.", gitHash, err)
53+
return &buildContext, nil
54+
}
5155
return nil, err
5256
}
5357

0 commit comments

Comments
 (0)