Sha256: 2c2d8d5095f013ad9ff8d72fefa4ff717f1ecfd1db4acb329cb7f73494dcc8c9
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
require 'rake' module Rake module Funnel module Integration module TeamCity class ProgressReport < Rake::Funnel::Integration::ProgressReport include Rake::Funnel::Integration def initialize # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity super do task_starting do |task, _args| next unless TeamCity.running? ServiceMessages.block_opened(name: task.name) unless TeamCity.rake_runner? end task_finished do |task, _args, error| next unless TeamCity.running? error = error.inner_exception if error.respond_to?(:inner_exception) 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
3 entries across 3 versions & 1 rubygems