BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2cc9a785
Commit
2cc9a785
authored
Sep 14, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly create deployment using all possible options
parent
08272ec1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
build.rb
app/models/ci/build.rb
+2
-1
entities.rb
lib/ci/api/entities.rb
+9
-0
No files found.
app/models/ci/build.rb
View file @
2cc9a785
...
@@ -79,7 +79,8 @@ module Ci
...
@@ -79,7 +79,8 @@ module Ci
after_transition
any
=>
[
:success
]
do
|
build
|
after_transition
any
=>
[
:success
]
do
|
build
|
if
build
.
environment
.
present?
if
build
.
environment
.
present?
service
=
CreateDeploymentService
.
new
(
build
.
project
,
build
.
user
,
service
=
CreateDeploymentService
.
new
(
build
.
project
,
build
.
user
,
environment:
build
.
environment
,
environment:
build
.
environment
,
sha:
build
.
sha
,
sha:
build
.
sha
,
ref:
build
.
ref
,
ref:
build
.
ref
,
...
...
lib/ci/api/entities.rb
View file @
2cc9a785
...
@@ -15,6 +15,15 @@ module Ci
...
@@ -15,6 +15,15 @@ module Ci
expose
:filename
,
:size
expose
:filename
,
:size
end
end
class
BuildOptions
<
Grape
::
Entity
expose
:image
expose
:services
expose
:artifacts
expose
:cache
expose
:dependencies
expose
:after_script
end
class
Build
<
Grape
::
Entity
class
Build
<
Grape
::
Entity
expose
:id
,
:ref
,
:tag
,
:sha
,
:status
expose
:id
,
:ref
,
:tag
,
:sha
,
:status
expose
:name
,
:token
,
:stage
expose
:name
,
:token
,
:stage
...
...
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