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
08ef7b9f
Commit
08ef7b9f
authored
Nov 12, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix non-hacking way
parent
7a98f0bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/models/concerns/deployable.rb
app/models/concerns/deployable.rb
+1
-2
spec/services/ci/create_pipeline_service_spec.rb
spec/services/ci/create_pipeline_service_spec.rb
+2
-0
No files found.
app/models/concerns/deployable.rb
View file @
08ef7b9f
...
@@ -13,14 +13,13 @@ module Deployable
...
@@ -13,14 +13,13 @@ module Deployable
name:
expanded_environment_name
name:
expanded_environment_name
)
)
environment
.
deployments
.
create
!
(
create_deployment
!
(
project_id:
environment
.
project_id
,
project_id:
environment
.
project_id
,
environment:
environment
,
environment:
environment
,
ref:
ref
,
ref:
ref
,
tag:
tag
,
tag:
tag
,
sha:
sha
,
sha:
sha
,
user:
user
,
user:
user
,
deployable:
self
,
on_stop:
on_stop
)
on_stop:
on_stop
)
end
end
end
end
...
...
spec/services/ci/create_pipeline_service_spec.rb
View file @
08ef7b9f
...
@@ -403,6 +403,8 @@ describe Ci::CreatePipelineService do
...
@@ -403,6 +403,8 @@ describe Ci::CreatePipelineService do
expect
(
result
).
to
be_persisted
expect
(
result
).
to
be_persisted
expect
(
Environment
.
find_by
(
name:
"review/master"
)).
to
be_present
expect
(
Environment
.
find_by
(
name:
"review/master"
)).
to
be_present
expect
(
result
.
builds
.
first
.
tag_list
).
to
contain_exactly
(
'hello'
)
expect
(
result
.
builds
.
first
.
tag_list
).
to
contain_exactly
(
'hello'
)
expect
(
result
.
builds
.
first
.
deployment
).
to
be_persisted
expect
(
result
.
builds
.
first
.
deployment
.
deployable
).
to
be_a
(
Ci
::
Build
)
end
end
end
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