diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-06-02 16:00:56 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-06-02 16:34:31 +0300 |
commit | 4968f226a0730de12c5f50b23e8e08360d906c3d (patch) | |
tree | 776903a296bb3e9dcd900a31a688f0016ee4cb77 /db/fixtures/development | |
parent | 3731ae092cac523a0092c64000d9e838662a85df (diff) |
Make sure that environment was created before deploying
Diffstat (limited to 'db/fixtures/development')
-rw-r--r-- | db/fixtures/development/14_pipelines.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/fixtures/development/14_pipelines.rb b/db/fixtures/development/14_pipelines.rb index 68767f0e585..5de5339b70e 100644 --- a/db/fixtures/development/14_pipelines.rb +++ b/db/fixtures/development/14_pipelines.rb @@ -112,6 +112,10 @@ class Gitlab::Seeder::Pipelines setup_artifacts(build) setup_build_log(build) + + build.project.environments. + find_or_create_by(name: build.expanded_environment_name) + build.save end end |