gitlab-qa 5.14.0 → 5.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +2 -0
- data/lib/gitlab/qa/release.rb +9 -3
- data/lib/gitlab/qa/runtime/env.rb +4 -6
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80b5afa85b80b6c367a00f9e0077782d761bf5ad69d851aa95e5ea4f7ec4af78
|
4
|
+
data.tar.gz: b6940307fb5981a4f7c4468be522916ae4a01f2e65ddb0a5847037ce7099556f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95347f6df44ef53110ac29177e3373fecba8d0ea2535f5a642233519c87d4c97edef9120d6a48e22b05739a00e4b01eccd090743894f1f0db52ba6a1ee4e0995
|
7
|
+
data.tar.gz: a688557eb3fb7738f7288dfbd18bf804fbfdbf668ffd1e17f155f1df3fce5b38b5618af10460355f516e26091e93f290651f364ac5f09531827c6a06b4b0fee5
|
data/.gitlab-ci.yml
CHANGED
@@ -31,6 +31,8 @@ workflow:
|
|
31
31
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
32
32
|
# For tags, create a pipeline.
|
33
33
|
- if: '$CI_COMMIT_TAG'
|
34
|
+
# For triggers from GitLab MR pipelines (and pipelines from other projects), create a pipeline
|
35
|
+
- if: '$CI_PIPELINE_SOURCE == "pipeline"'
|
34
36
|
|
35
37
|
.default-rules:
|
36
38
|
rules:
|
data/lib/gitlab/qa/release.rb
CHANGED
@@ -145,11 +145,17 @@ module Gitlab
|
|
145
145
|
registry: DEV_REGISTRY
|
146
146
|
}
|
147
147
|
elsif omnibus_mirror?
|
148
|
-
Runtime::Env.
|
148
|
+
username, password = if Runtime::Env.ci_job_token
|
149
|
+
['gitlab-ci-token', Runtime::Env.ci_job_token]
|
150
|
+
else
|
151
|
+
Runtime::Env.require_qa_access_token!
|
152
|
+
|
153
|
+
[Runtime::Env.gitlab_username, Runtime::Env.qa_access_token]
|
154
|
+
end
|
149
155
|
|
150
156
|
{
|
151
|
-
username:
|
152
|
-
password:
|
157
|
+
username: username,
|
158
|
+
password: password,
|
153
159
|
registry: COM_REGISTRY
|
154
160
|
}
|
155
161
|
end
|
@@ -104,6 +104,10 @@ module Gitlab
|
|
104
104
|
ENV['CI_JOB_NAME']
|
105
105
|
end
|
106
106
|
|
107
|
+
def ci_job_token
|
108
|
+
ENV['CI_JOB_TOKEN']
|
109
|
+
end
|
110
|
+
|
107
111
|
def ci_job_url
|
108
112
|
ENV['CI_JOB_URL']
|
109
113
|
end
|
@@ -207,12 +211,6 @@ module Gitlab
|
|
207
211
|
end
|
208
212
|
end
|
209
213
|
|
210
|
-
def require_gitlab_bot_multi_project_pipeline_polling_token!
|
211
|
-
return unless ENV['GITLAB_BOT_MULTI_PROJECT_PIPELINE_POLLING_TOKEN'].to_s.strip.empty?
|
212
|
-
|
213
|
-
raise ArgumentError, "Please provide GITLAB_BOT_MULTI_PROJECT_PIPELINE_POLLING_TOKEN"
|
214
|
-
end
|
215
|
-
|
216
214
|
def skip_pull?
|
217
215
|
enabled?(ENV['QA_SKIP_PULL'], default: false)
|
218
216
|
end
|
data/lib/gitlab/qa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-qa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.14.
|
4
|
+
version: 5.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grzegorz Bizon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|