Skip to content

Commit

Permalink
Add the server specific center dict, which may differ from the cloud one
Browse files Browse the repository at this point in the history
  • Loading branch information
mghesh-yseop committed Jan 21, 2025
1 parent 51a8e30 commit 3a3c3e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jenkinsapi/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ def update_center_dict(self):
self._update_center_dict = requests.get(update_center).json()
return self._update_center_dict

@property
def update_center_dict_server(self):
if not hasattr(self, "_update_center_dict_server"):
self._update_center_dict_server = self.jenkins_obj.requester.get_url(
self.jenkins_obj.get_update_center_url(2)
).json()
return self._update_center_dict_server

def _poll(self, tree=None):
return self.get_data(self.baseurl, tree=tree)

Expand Down

0 comments on commit 3a3c3e4

Please sign in to comment.