diff options
author | Jonathon Reinhart <Jonathon.Reinhart@gmail.com> | 2016-10-02 10:30:39 -0400 |
---|---|---|
committer | Jonathon Reinhart <Jonathon.Reinhart@gmail.com> | 2016-10-02 10:30:39 -0400 |
commit | c2f45e90a52cb418665c65258628d382e0725401 (patch) | |
tree | 06dbdfff382d6b631561c3c03d0f351d61f26f02 /gitlab/exceptions.py | |
parent | 7d424ae5a4dad41533af7add24d728c315563022 (diff) | |
download | gitlab-c2f45e90a52cb418665c65258628d382e0725401.tar.gz |
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
Diffstat (limited to 'gitlab/exceptions.py')
-rw-r--r-- | gitlab/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |