diff --git a/pkg/controller/jenkins/notifications/slack.go b/pkg/controller/jenkins/notifications/slack.go index a48cfd49..d1081fcb 100644 --- a/pkg/controller/jenkins/notifications/slack.go +++ b/pkg/controller/jenkins/notifications/slack.go @@ -91,7 +91,7 @@ func (s Slack) Send(event Event, config v1alpha2.Notification) error { }, } - mainAttachment := sm.Attachments[0] + mainAttachment := &sm.Attachments[0] mainAttachment.Title = notificationTitle(event)