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
f4030dc3
Commit
f4030dc3
authored
Dec 14, 2017
by
Balasankar "Balu" C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve language
parent
ab78b570
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
scripts/trigger-build-omnibus
scripts/trigger-build-omnibus
+6
-4
No files found.
scripts/trigger-build-omnibus
View file @
f4030dc3
...
@@ -67,8 +67,7 @@ module Omnibus
...
@@ -67,8 +67,7 @@ module Omnibus
def
wait!
def
wait!
loop
do
loop
do
if
timeout?
if
timeout?
puts
"
\n
Waited for
#{
((
Time
.
now
.
to_i
-
@start
)
/
60
)
}
minutes"
raise
"Pipeline timed out after waiting for
#{
duration
}
minutes!"
raise
'Pipeline timeout!'
end
end
case
status
case
status
...
@@ -76,8 +75,7 @@ module Omnibus
...
@@ -76,8 +75,7 @@ module Omnibus
print
"."
print
"."
sleep
INTERVAL
sleep
INTERVAL
when
:success
when
:success
puts
"
\n
Waited for
#{
((
Time
.
now
.
to_i
-
@start
)
/
60
)
}
minutes"
puts
"Omnibus pipeline succeeded in
#{
duration
}
minutes!"
puts
"Omnibus pipeline succeeded!"
break
break
else
else
raise
"Omnibus pipeline did not succeed!"
raise
"Omnibus pipeline did not succeed!"
...
@@ -91,6 +89,10 @@ module Omnibus
...
@@ -91,6 +89,10 @@ module Omnibus
Time
.
now
.
to_i
>
(
@start
+
MAX_DURATION
)
Time
.
now
.
to_i
>
(
@start
+
MAX_DURATION
)
end
end
def
duration
(
Time
.
now
.
to_i
-
@start
)
/
60
end
def
status
def
status
req
=
Net
::
HTTP
::
Get
.
new
(
@uri
)
req
=
Net
::
HTTP
::
Get
.
new
(
@uri
)
req
[
'PRIVATE-TOKEN'
]
=
ENV
[
'GITLAB_QA_ACCESS_TOKEN'
]
req
[
'PRIVATE-TOKEN'
]
=
ENV
[
'GITLAB_QA_ACCESS_TOKEN'
]
...
...
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