Skip to content

Commit 32b5af2

Browse files
authored
[Bamboo] Get Bamboo deployment queue (#1166)
1 parent 3ad576c commit 32b5af2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

atlassian/bamboo.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,14 @@ def get_build_queue(self, expand="queuedBuilds"):
831831
params = {"expand": expand}
832832
return self.get("rest/api/latest/queue", params=params)
833833

834+
def get_deployment_queue(self, expand="queuedDeployments"):
835+
"""
836+
Provide list of deployment results scheduled for execution and waiting in queue.
837+
:return:
838+
"""
839+
params = {"expand": expand}
840+
return self.get("rest/api/latest/queue/deployment", params=params)
841+
834842
def get_deployment_users(self, deployment_id, filter_name=None, start=0, limit=25):
835843
"""
836844
Retrieve a list of users with their explicit permissions to given resource.

docs/bamboo.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ Other actions
231231
# Get build queue
232232
get_build_queue(expand='queuedBuilds')
233233
234+
# Get deployment queue
235+
get_deployment_queue(expand='queuedDeployments')
236+
234237
# Get server information
235238
server_info()
236239

0 commit comments

Comments
 (0)