Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-06-02 19:24:20 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-06-02 19:24:20 +0300
commit2fa766e10796ba07872ce0a5554d237bd7b153ee (patch)
tree0ce30424a5fdb609d5b5cf140356a44deb6a1735 /app/services
parent4968f226a0730de12c5f50b23e8e08360d906c3d (diff)
Only deploy if environment exists; Update tests accordingly
Diffstat (limited to 'app/services')
-rw-r--r--app/services/create_deployment_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/create_deployment_service.rb b/app/services/create_deployment_service.rb
index 0d2ffa8012d..46823418bb0 100644
--- a/app/services/create_deployment_service.rb
+++ b/app/services/create_deployment_service.rb
@@ -27,7 +27,7 @@ class CreateDeploymentService
private
def executable?
- project && job.environment.present?
+ project && job.environment.present? && environment
end
def deploy