Sha256: 82d5eb2e9bfc60e56e076ceb11433fada3ce22d77ec7a75a19681b381a953f21
Contents?: true
Size: 1.01 KB
Versions: 18
Compression:
Stored size: 1.01 KB
Contents
require 'rake' module Rake module Funnel module Integration module TeamCity class ProgressReport < Rake::Funnel::Integration::ProgressReport include Rake::Funnel::Integration def initialize super do task_starting do |task, _args| next unless TeamCity.running? unless TeamCity.rake_runner? ServiceMessages.block_opened(name: task.name) end end task_finished do |task, _args, error| next unless TeamCity.running? if error.respond_to?(:inner_exception) error = error.inner_exception end ServiceMessages.build_problem(description: error.message[0..4000 - 1]) if error next if Rake::Funnel::Integration::TeamCity.rake_runner? ServiceMessages.block_closed(name: task.name) end end end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems