diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-10-17 15:02:27 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-10-17 15:02:27 +0900 |
commit | 441d0f77d95376970566762fa154f57d699dfb40 (patch) | |
tree | ecb9ad7ce9425142acc85513daa6db8a9226237f | |
parent | 24eecd91baf9e437b0875fe2df8187e5402665f2 (diff) | |
download | gitlab-ce-441d0f77d95376970566762fa154f57d699dfb40.tar.gz |
return deployment_path if not exist
-rw-r--r-- | lib/gitlab/ci/status/deployment/created.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/ci/status/deployment/success.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/status/deployment/created.rb b/lib/gitlab/ci/status/deployment/created.rb index 31634022710..66866a9690b 100644 --- a/lib/gitlab/ci/status/deployment/created.rb +++ b/lib/gitlab/ci/status/deployment/created.rb @@ -12,6 +12,8 @@ module Gitlab end def deployment_path + return unless subject.environment.last_successful_deployment + project_job_path(subject.project, subject.environment.last_successful_deployment.deployable) end diff --git a/lib/gitlab/ci/status/deployment/success.rb b/lib/gitlab/ci/status/deployment/success.rb index 2fe3193515e..72f87cb6b1a 100644 --- a/lib/gitlab/ci/status/deployment/success.rb +++ b/lib/gitlab/ci/status/deployment/success.rb @@ -12,6 +12,8 @@ module Gitlab end def deployment_path + return unless subject.environment.last_successful_deployment + project_job_path(subject.project, subject.environment.last_successful_deployment.deployable) end |