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
4968f226
Commit
4968f226
authored
Jun 02, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that environment was created before deploying
parent
3731ae09
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
db/fixtures/development/14_pipelines.rb
db/fixtures/development/14_pipelines.rb
+4
-0
spec/support/cycle_analytics_helpers.rb
spec/support/cycle_analytics_helpers.rb
+2
-0
No files found.
db/fixtures/development/14_pipelines.rb
View file @
4968f226
...
@@ -112,6 +112,10 @@ class Gitlab::Seeder::Pipelines
...
@@ -112,6 +112,10 @@ class Gitlab::Seeder::Pipelines
setup_artifacts
(
build
)
setup_artifacts
(
build
)
setup_build_log
(
build
)
setup_build_log
(
build
)
build
.
project
.
environments
.
find_or_create_by
(
name:
build
.
expanded_environment_name
)
build
.
save
build
.
save
end
end
end
end
...
...
spec/support/cycle_analytics_helpers.rb
View file @
4968f226
...
@@ -78,6 +78,8 @@ module CycleAnalyticsHelpers
...
@@ -78,6 +78,8 @@ module CycleAnalyticsHelpers
end
end
def
new_dummy_job
(
environment
)
def
new_dummy_job
(
environment
)
project
.
environments
.
find_or_create_by
(
name:
environment
)
Ci
::
Build
.
new
(
Ci
::
Build
.
new
(
project:
project
,
project:
project
,
user:
user
,
user:
user
,
...
...
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