From c2f45e90a52cb418665c65258628d382e0725401 Mon Sep 17 00:00:00 2001 From: Jonathon Reinhart Date: Sun, 2 Oct 2016 10:30:39 -0400 Subject: Add ProjectBuild.erase() We can't use the existing delete() functionality, because GitLab uses `POST /projects/:id/builds/:build_id/erase` to erase a build. Instead of overriding delete(), we add a separate erase() method to keep the naming consistent, and allow potentially more fine-grained operations in the future. - https://docs.gitlab.com/ce/api/builds.html#erase-a-build --- gitlab/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gitlab/exceptions.py') diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py index 7b0f7f0..0fc8617 100644 --- a/gitlab/exceptions.py +++ b/gitlab/exceptions.py @@ -95,6 +95,10 @@ class GitlabBuildRetryError(GitlabRetryError): pass +class GitlabBuildEraseError(GitlabRetryError): + pass + + class GitlabPipelineRetryError(GitlabRetryError): pass -- cgit v1.2.1