Class: Gitlab::QA::Component::Staging
- Inherits:
-
Object
- Object
- Gitlab::QA::Component::Staging
show all
- Defined in:
- lib/gitlab/qa/component/staging.rb
Defined Under Namespace
Classes: Version
Constant Summary
collapse
- ADDRESS =
Runtime::Env.staging_url
- GEO_SECONDARY_ADDRESS =
Runtime::Env.geo_staging_url
Class Method Summary
collapse
Class Method Details
.address ⇒ Object
41
42
43
|
# File 'lib/gitlab/qa/component/staging.rb', line 41
def self.address
self::ADDRESS
end
|
.image ⇒ Object
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/gitlab/qa/component/staging.rb', line 22
def self.image
if Runtime::Env.dev_access_token_variable
"dev.gitlab.org:5005/gitlab/gitlab-ee/gitlab-ee-qa:#{tag}"
else
"registry.gitlab.com/gitlab-org/gitlab/gitlab-ee-qa:#{tag}"
end
end
|
.release ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/gitlab/qa/component/staging.rb', line 14
def self.release
QA::Release.new(image)
rescue Support::InvalidResponseError => e
warn e.message
warn "#{e.response.code} #{e.response.message}: #{e.response.body}"
exit 1
end
|
.tag ⇒ Object
45
46
47
|
# File 'lib/gitlab/qa/component/staging.rb', line 45
def self.tag
@tag ||= Version.new(address).tag
end
|