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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
ab78b570
Commit
ab78b570
authored
Dec 14, 2017
by
Balasankar "Balu" C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettify
parent
963b007b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
scripts/trigger-build-omnibus
scripts/trigger-build-omnibus
+9
-4
No files found.
scripts/trigger-build-omnibus
View file @
ab78b570
...
...
@@ -21,6 +21,7 @@ module Omnibus
if
id
puts
"Triggered https://gitlab.com/
#{
Omnibus
::
PROJECT_PATH
}
/pipelines/
#{
id
}
"
puts
"Waiting for downstream pipeline status"
else
raise
"Trigger failed! The response from the trigger is:
#{
res
.
body
}
"
end
...
...
@@ -36,12 +37,12 @@ module Omnibus
def
env_params
{
"ref"
=>
"trigger-user-pipeline-info
"
,
"ref"
=>
ENV
[
"OMNIBUS_BRANCH"
]
||
"master
"
,
"variables[GITLAB_VERSION]"
=>
ENV
[
"CI_COMMIT_SHA"
],
"variables[ALTERNATIVE_SOURCES]"
=>
true
,
"variables[ee]"
=>
ee?
?
'true'
:
'false'
,
"variables[TRIGGERED_USER]"
=>
ENV
[
"GITLAB_USER_NAME"
],
"variables[TRIGGER_SOURCE
_JOB
]"
=>
"https://gitlab.com/gitlab-org/
#{
ENV
[
'CI_PROJECT_NAME'
]
}
/-/jobs/
#{
ENV
[
'CI_JOB_ID'
]
}
"
"variables[TRIGGER_SOURCE]"
=>
"https://gitlab.com/gitlab-org/
#{
ENV
[
'CI_PROJECT_NAME'
]
}
/-/jobs/
#{
ENV
[
'CI_JOB_ID'
]
}
"
}
end
...
...
@@ -65,13 +66,17 @@ module Omnibus
def
wait!
loop
do
raise
'Pipeline timeout!'
if
timeout?
if
timeout?
puts
"
\n
Waited for
#{
((
Time
.
now
.
to_i
-
@start
)
/
60
)
}
minutes"
raise
'Pipeline timeout!'
end
case
status
when
:created
,
:pending
,
:running
p
uts
"Waiting another
#{
INTERVAL
}
seconds ..
."
p
rint
"
."
sleep
INTERVAL
when
:success
puts
"
\n
Waited for
#{
((
Time
.
now
.
to_i
-
@start
)
/
60
)
}
minutes"
puts
"Omnibus pipeline succeeded!"
break
else
...
...
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