Skip to content

Commit 853a29e

Browse files
authored
fix: select image not working for external webhook (#3187)
* wip * wip
1 parent f91d223 commit 853a29e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/pipeline/PipelineBuilder.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,6 +2748,10 @@ func (impl PipelineBuilderImpl) GetArtifactsForCdStage(cdPipelineId int, parentI
27482748
impl.logger.Errorw("error in getting artifactBean for one ci_artifact", "err", err, "parentStage", parentType, "stage", stage)
27492749
return ciArtifactsResponse, err
27502750
}
2751+
if artifactBean.ExternalCiPipelineId != 0 {
2752+
// if external webhook continue
2753+
continue
2754+
}
27512755
var ciWorkflow *pipelineConfig.CiWorkflow
27522756
if artifactBean.ParentCiArtifact != 0 {
27532757
ciWorkflow, err = impl.ciWorkflowRepository.FindLastTriggeredWorkflowByArtifactId(artifactBean.ParentCiArtifact)

0 commit comments

Comments
 (0)