Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2c5fbd87
Commit
2c5fbd87
authored
Dec 18, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6095de47
c516c801
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
.gitlab-ci.yml
.gitlab-ci.yml
+7
-1
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+2
-2
scripts/trigger-build
scripts/trigger-build
+1
-7
No files found.
.gitlab-ci.yml
View file @
2c5fbd87
...
...
@@ -322,10 +322,16 @@ package-and-qa:
<<
:
*single-script-job
variables
:
<<
:
*single-script-job-variables
API_TOKEN
:
"
${GITLAB_BOT_MULTI_PROJECT_PIPELINE_POLLING_TOKEN}"
SCRIPT_NAME
:
trigger-build
retry
:
0
script
:
-
gem install gitlab --no-document
-
apk add --update openssl curl jq
-
wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/review_apps/review-apps.sh
-
chmod 755 review-apps.sh
-
source ./review-apps.sh
-
wait_for_job_to_be_done "gitlab:assets:compile"
-
./$SCRIPT_NAME omnibus
when
:
manual
only
:
...
...
@@ -751,7 +757,7 @@ gitlab:setup-mysql:
# Frontend-related jobs
gitlab:assets:compile:
<<
:
*dedicated-no-docs-
and-no-qa-
pull-cache-job
<<
:
*dedicated-no-docs-pull-cache-job
image
:
dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.5.3-git-2.18-chrome-69.0-node-8.x-yarn-1.12-graphicsmagick-1.3.29-docker-18.06.1
dependencies
:
[]
services
:
...
...
scripts/review_apps/review-apps.sh
View file @
2c5fbd87
...
...
@@ -292,7 +292,7 @@ function get_job_id() {
local
job_id
=
$(
curl
--silent
--show-error
--header
"PRIVATE-TOKEN:
${
API_TOKEN
}
"
"
${
url
}
"
| jq
"map(select(.name ==
\"
${
job_name
}
\"
)) | map(.id) | last"
)
[[
"
${
job_id
}
"
==
"null"
&&
"
${
page
}
"
-lt
"
$max_page
"
]]
||
break
((
page++
))
let
"page++"
done
if
[[
"
${
job_id
}
"
==
""
]]
;
then
...
...
@@ -334,7 +334,7 @@ function wait_for_job_to_be_done() {
[[
"
${
job_status
}
"
==
"pending"
||
"
${
job_status
}
"
==
"running"
]]
||
break
printf
"."
((
elapsed_seconds+
=
$interval
))
let
"elapsed_seconds+=interval"
sleep
${
interval
}
done
...
...
scripts/trigger-build
View file @
2c5fbd87
...
...
@@ -68,7 +68,7 @@ module Trigger
def
base_variables
{
'GITLAB_REF_SLUG'
=>
ref_slug
,
'GITLAB_REF_SLUG'
=>
ENV
[
'CI_COMMIT_REF_SLUG'
]
,
'TRIGGERED_USER'
=>
ENV
[
'TRIGGERED_USER'
]
||
ENV
[
'GITLAB_USER_NAME'
],
'TRIGGER_SOURCE'
=>
ENV
[
'CI_JOB_URL'
],
'TOP_UPSTREAM_SOURCE_PROJECT'
=>
ENV
[
'CI_PROJECT_PATH'
],
...
...
@@ -77,12 +77,6 @@ module Trigger
}
end
def
ref_slug
return
'master'
if
ENV
[
'CI_COMMIT_REF_SLUG'
]
=~
%r{(
\A
qa[/-]|-qa
\z
)}
ENV
[
'CI_COMMIT_REF_SLUG'
]
end
# Read version files from all components
def
version_file_variables
Dir
.
glob
(
"*_VERSION"
).
each_with_object
({})
do
|
version_file
,
params
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment