Skip to content

Commit e7edd76

Browse files
Update mls_ruby_capistrano_slacker.rake
1 parent 3a85cf4 commit e7edd76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/capistrano/tasks/mls_ruby_capistrano_slacker.rake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ namespace :mls_ruby_capistrano_slacker do
4040
def get_release_description
4141
return unless fetch(:mls_ruby_capistrano_slacker_post_release_description)
4242

43+
return if fetch(:mls_ruby_capistrano_slacker_skip)
44+
4345
pipelines_url = URI.parse(
4446
"#{ ENV['CI_API_V4_URL'] }/projects/#{ ENV['CI_PROJECT_ID'] }/pipelines?username=#{ ENV.fetch('GITLAB_USER_LOGIN') }&status=success&ref=#{ ENV.fetch('CI_COMMIT_REF_NAME') }"
4547
)
@@ -121,6 +123,8 @@ namespace :mls_ruby_capistrano_slacker do
121123
# BEGINNING
122124
#
123125
task :notify_about_beginning do
126+
return if fetch(:mls_ruby_capistrano_slacker_skip)
127+
124128
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] notify_about_beginning'
125129

126130
on roles(:all) do |host|
@@ -148,6 +152,8 @@ namespace :mls_ruby_capistrano_slacker do
148152
# FAILED
149153
#
150154
task :notify_failed do
155+
return if fetch(:mls_ruby_capistrano_slacker_skip)
156+
151157
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] notify_failed'
152158

153159
on roles(:all) do |host|
@@ -175,6 +181,8 @@ namespace :mls_ruby_capistrano_slacker do
175181
# FINISHED
176182
#
177183
task :notify_finished do
184+
return if fetch(:mls_ruby_capistrano_slacker_skip)
185+
178186
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] notify_finished'
179187

180188
on roles(:all) do |host|

0 commit comments

Comments
 (0)