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:
-rw-r--r--lib/api/services.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb
index d562b9484c5..bde502e32e1 100644
--- a/lib/api/services.rb
+++ b/lib/api/services.rb
@@ -31,7 +31,11 @@ module API
# DELETE /projects/:id/keys/:id
delete ":id/services/gitlab-ci" do
if user_project.gitlab_ci_service
- user_project.gitlab_ci_service.destroy
+ user_project.gitlab_ci_service.update_attributes(
+ active: false,
+ token: nil,
+ project_url: nil
+ )
end
end
end