Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions atlassian/bamboo.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ def delete_plan(self, plan_key):
resource = 'rest/api/latest/plan/{}'.format(plan_key)
return self.delete(resource)

def disable_plan(self, plan_key):
"""
Disable plan.
:param plan_key: str TST-BLD
:return: DELETE request
"""
resource = 'plan/{plan_key}/enable'.format(plan_key=plan_key)
return self.delete(self.resource_url(resource))

def enable_plan(self, plan_key):
"""
Enable plan.
Expand Down
5 changes: 4 additions & 1 deletion docs/bamboo.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Confluence module
Bamboo module
=================

Projects & Plans
Expand Down Expand Up @@ -27,6 +27,9 @@ Projects & Plans
# Delete a plan (or a plan branch)
delete_plan(plan_key)

# Disable plan
disable_plan(plan_key)

# Enable plan
enable_plan(plan_key)

Expand Down