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
Léo-Paul Géneau
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
Show 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
def
wait!
loop
do
if
timeout?
puts
"
\n
Waited for
#{
((
Time
.
now
.
to_i
-
@start
)
/
60
)
}
minutes"
raise
'Pipeline timeout!'
raise
"Pipeline timed out after waiting for
#{
duration
}
minutes!"
end
case
status
...
...
@@ -76,8 +75,7 @@ module Omnibus
print
"."
sleep
INTERVAL
when
:success
puts
"
\n
Waited for
#{
((
Time
.
now
.
to_i
-
@start
)
/
60
)
}
minutes"
puts
"Omnibus pipeline succeeded!"
puts
"Omnibus pipeline succeeded in
#{
duration
}
minutes!"
break
else
raise
"Omnibus pipeline did not succeed!"
...
...
@@ -91,6 +89,10 @@ module Omnibus
Time
.
now
.
to_i
>
(
@start
+
MAX_DURATION
)
end
def
duration
(
Time
.
now
.
to_i
-
@start
)
/
60
end
def
status
req
=
Net
::
HTTP
::
Get
.
new
(
@uri
)
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