Class: Publisher::Providers::Info::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/allure_report_publisher/lib/providers/info/_base.rb

Overview

Base class for CI executor info

Direct Known Subclasses

Github, Gitlab

Constant Summary collapse

ALLURE_JOB_NAME =
"ALLURE_JOB_NAME".freeze
ALLURE_RUN_ID =
"ALLURE_RUN_ID".freeze

Instance Method Summary collapse

Instance Method Details

#executor(_report_url) ⇒ Hash

CI Provider executor info

Parameters:

  • report_url (String)

Returns:

  • (Hash)


18
19
20
# File 'lib/allure_report_publisher/lib/providers/info/_base.rb', line 18

def executor(_report_url)
  raise("Not implemented!")
end

#pr?Boolean

Running on pull request/merge request

Returns:

  • (Boolean)


25
26
27
# File 'lib/allure_report_publisher/lib/providers/info/_base.rb', line 25

def pr?
  raise("Not implemented!")
end

#run_idInteger

Pipeline run id

Returns:

  • (Integer)


32
33
34
# File 'lib/allure_report_publisher/lib/providers/info/_base.rb', line 32

def run_id
  raise("Not implemented!")
end