Skip to content

Commit

Permalink
Merge pull request #24 from avi-biton/log
Browse files Browse the repository at this point in the history
add status of ended pipelinerun to the log
  • Loading branch information
avi-biton authored Aug 8, 2024
2 parents ac6260d + f3714bf commit 9a463c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controller/notificationservice_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func (r *NotificationServiceReconciler) Reconcile(ctx context.Context, req ctrl.
}

if IsPipelineRunEnded(pipelineRun) {
logger.Info("Pipelinerun ended", "pipelinerun", pipelineRun.Name, "ended_successfully", IsPipelineRunEndedSuccessfully(pipelineRun))
if IsPipelineRunEndedSuccessfully(pipelineRun) && !IsAnnotationExistInPipelineRun(pipelineRun, NotificationPipelineRunAnnotation, NotificationPipelineRunAnnotationValue) {
results, err := GetResultsFromPipelineRun(pipelineRun)
if err != nil {
Expand Down

0 comments on commit 9a463c4

Please sign in to comment.