lib/builderator/tasks/clean.rb in builderator-0.3.14 vs lib/builderator/tasks/clean.rb in builderator-0.3.15
- old
+ new
@@ -86,9 +86,12 @@
say_status :fail, 'Not all tasks completed successfully. The following '\
'exceptions occured:', :red
Control::Clean.exceptions.each do |e|
say_status(*e.status)
end
+
+ ## Mark the Jenkins job as fail if there were errors.
+ exit(1)
end
end
end
end