Adding in UI for cancel anytime.
This commit is contained in:
parent
f6fe9023a4
commit
2fe74e4057
11 changed files with 31 additions and 25 deletions
|
@ -318,7 +318,7 @@ class RepositoryBuildResource(RepositoryParamResource):
|
|||
@require_repo_admin
|
||||
@nickname('cancelRepoBuild')
|
||||
def delete(self, namespace, repository, build_uuid):
|
||||
""" Cancels a repository build if it has not yet been picked up by a build worker. """
|
||||
""" Cancels a repository build. """
|
||||
try:
|
||||
build = model.build.get_repository_build(build_uuid)
|
||||
except model.build.InvalidRepositoryBuildException:
|
||||
|
|
Reference in a new issue