Skip to content

Commit d9d0ecb

Browse files
committed
Bamboo: verification get all project method #734
1 parent 6ca0d0d commit d9d0ecb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.0
1+
4.0.1

atlassian/bamboo.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,11 +746,13 @@ def delete_label(self, project_key, plan_key, build_number, label):
746746
return self.delete(self.resource_url(resource))
747747

748748
@property
749-
def get_projects(self):
749+
def get_projects(self, start=0, limit=25):
750750
"""Method used to list all projects defined in Bamboo.
751-
Projects without any plan are not listed."""
752-
start_idx = 0
753-
max_results = 25
751+
Projects without any plan are not listed.
752+
:return: GET request
753+
"""
754+
start_idx = start
755+
max_results = limit
754756

755757
while True:
756758
resource = f"project?start-index={start_idx}&max-result={max_results}"

0 commit comments

Comments
 (0)