Sha256: ded5ca24fa9801aec2ed2f939f8627f3390376dad7b4293215512304c174a0eb

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require 'gitlab'

module GitlabQuality
  module TestTooling
    module GitlabClient
      class JobClient < GitlabClient
        attr_reader :job_id

        def initialize(token:, project:, job_id:)
          super

          @job_id = job_id
        end

        def job_trace
          trace = ''

          ignore_gitlab_client_exceptions do
            trace = client.job_trace(project, job_id)
          end

          trace
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-2.5.0 lib/gitlab_quality/test_tooling/gitlab_client/job_client.rb
gitlab_quality-test_tooling-2.4.0 lib/gitlab_quality/test_tooling/gitlab_client/job_client.rb
gitlab_quality-test_tooling-2.3.0 lib/gitlab_quality/test_tooling/gitlab_client/job_client.rb