Skip to content
Snippets Groups Projects
Commit 96fc9ce2 authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by Valery Sizov
Browse files

Don't send notifications for jobs with allow_failure set

parent aa69db9b
No related branches found
No related tags found
No related merge requests found
v7.13.1
- Fix: user could steal specific runner
- Fix: don't send notifications for jobs with allow_failure set
 
v7.13.0
- Allow to specify image and services in yml that can be used with docker
Loading
Loading
Loading
Loading
@@ -44,6 +44,8 @@ class HipChatService < Service
end
 
def execute build
return if build.allow_failure?
commit = build.commit
return unless commit
return unless commit.builds_without_retry.include? build
Loading
Loading
Loading
Loading
@@ -58,6 +58,8 @@ class MailService < Service
end
 
def execute(build)
return if build.allow_failure?
# it doesn't make sense to send emails for retried builds
commit = build.commit
return unless commit
Loading
Loading
Loading
Loading
@@ -22,6 +22,7 @@ class SlackMessage
 
if commit.matrix?
commit.builds_without_retry.each do |build|
next if build.allow_failure?
next unless build.failed?
fields << {
title: build.name,
Loading
Loading
Loading
Loading
@@ -57,6 +57,8 @@ class SlackService < Service
end
 
def execute(build)
return if build.allow_failure?
commit = build.commit
return unless commit
return unless commit.builds_without_retry.include?(build)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment