services/test_runner_service.rb
# Let GitHub know about the current state of the build
# Using a `rescue` block here is important
# As the build is still green, even though we couldn't set the GH status
Let GitHub know about the current state of the build
Using a `rescue` block here is important
As the build is still green, even though we couldn't set the GH status
Let GitHub know about the current state of the build Using a ` rescue ` block here is important As the build is still green even though we couldn ' t set the GH status
def update_build_status_source!
      self.code_hosting_service.set_build_status!(
        repo: self.project.repo_config.git_url,
        sha: self.sha,
        state: self.current_build.status,
        target_url: nil
      )
    rescue StandardError => ex
      logger.error("Error setting the build status on remote service")
      logger.error(ex.to_s)
      logger.error(ex.backtrace.join("\n"))
    end
def update_build_status_source! self . code_hosting_service . set_build_status! ( repo : self . project . repo_config . git_url , sha : self . sha , state : self . current_build . status , target_url : nil ) rescue StandardError => ex logger . error ( "Error setting the build status on remote service" ) logger . error ( ex . to_s ) logger . error ( ex . backtrace . join ( "\n" ) ) end
Let GitHub know about the current state of the build
Using a `rescue` block here is important
As the build is still green, even though we couldn't set the GH status
Let GitHub know about the current state of the build Using a ` rescue ` block here is important As the build is still green even though we couldn ' t set the GH status