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
Jérome Perrin
gitlab-ce
Commits
fb2ab2a3
Commit
fb2ab2a3
authored
Jun 09, 2017
by
Balasankar C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass false to trigger if EE_PACKAGE not set
parent
66aad16d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
scripts/trigger-build
scripts/trigger-build
+7
-2
No files found.
scripts/trigger-build
View file @
fb2ab2a3
...
@@ -9,7 +9,7 @@ params = {
...
@@ -9,7 +9,7 @@ params = {
"token"
=>
ENV
[
"BUILD_TRIGGER_TOKEN"
],
"token"
=>
ENV
[
"BUILD_TRIGGER_TOKEN"
],
"variables[GITLAB_VERSION]"
=>
ENV
[
"CI_COMMIT_SHA"
],
"variables[GITLAB_VERSION]"
=>
ENV
[
"CI_COMMIT_SHA"
],
"variables[ALTERNATIVE_SOURCES]"
=>
true
,
"variables[ALTERNATIVE_SOURCES]"
=>
true
,
"variables[ee]"
=>
ENV
[
"EE_PACKAGE"
]
"variables[ee]"
=>
ENV
[
"EE_PACKAGE"
]
||
"false"
}
}
Dir
.
glob
(
"*_VERSION"
).
each
do
|
version_file
|
Dir
.
glob
(
"*_VERSION"
).
each
do
|
version_file
|
...
@@ -19,4 +19,9 @@ end
...
@@ -19,4 +19,9 @@ end
res
=
Net
::
HTTP
.
post_form
(
uri
,
params
)
res
=
Net
::
HTTP
.
post_form
(
uri
,
params
)
pipeline_id
=
JSON
.
parse
(
res
.
body
)[
'id'
]
pipeline_id
=
JSON
.
parse
(
res
.
body
)[
'id'
]
puts
"Triggered pipeline can be found at https://gitlab.com/gitlab-org/omnibus-gitlab/pipelines/
#{
pipeline_id
}
"
unless
pipeline_id
.
nil?
puts
"Triggered pipeline can be found at https://gitlab.com/gitlab-org/omnibus-gitlab/pipelines/
#{
pipeline_id
}
"
else
puts
"Trigger failed. The response from trigger is: "
puts
res
.
body
end
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