Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/router/pubsub/CiEventHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (impl *CiEventHandlerImpl) Subscribe() error {
impl.logger.Error("error while unmarshalling json data", "error", err)
return
}
util.TriggerCIMetrics(ciCompleteEvent.Metrics, impl.ciEventConfig.ExposeCiMetrics, ciCompleteEvent.PipelineName, ciCompleteEvent.AppName)
impl.logger.Debugw("ci complete event for ci", "ciPipelineId", ciCompleteEvent.PipelineId)
req, err := impl.BuildCiArtifactRequest(ciCompleteEvent)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ func (impl *CdWorkflowRepositoryImpl) FindCdWorkflowMetaByEnvironmentId(appId in
Column("cd_workflow_runner.*", "CdWorkflow", "CdWorkflow.Pipeline", "CdWorkflow.CiArtifact").
Where("p.environment_id = ?", environmentId).
Where("p.app_id = ?", appId).
Where("p.deleted = ?", false).
Order("cd_workflow_runner.id DESC").
Join("inner join cd_workflow wf on wf.id = cd_workflow_runner.cd_workflow_id").
Join("inner join ci_artifact cia on cia.id = wf.ci_artifact_id").
Expand Down