diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-08 10:28:21 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-08 13:10:38 +0300 |
commit | c4ce61b47d0ded28a4ef881f578b310339eaa2ae (patch) | |
tree | 240023515757748d418ab98f673c89abee61a694 /ick2/client.py | |
parent | 896d176ef803c096ec8d197bb961c7367d862bcb (diff) | |
download | ick2-c4ce61b47d0ded28a4ef881f578b310339eaa2ae.tar.gz |
Add: icktool trigger, status, show-log, show-latest-log
Diffstat (limited to 'ick2/client.py')
-rw-r--r-- | ick2/client.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ick2/client.py b/ick2/client.py index ec2a113..533b8cd 100644 --- a/ick2/client.py +++ b/ick2/client.py @@ -214,6 +214,23 @@ class ControllerClient: url = self.url(path) return self._api.post(url, body=obj) + def trigger(self, project_name, pipeline_name): # pragma: no cover + path = '/projects/{}/pipelines/{}/+trigger'.format( + project_name, pipeline_name) + url = self.url(path) + return self._api.get_blob(url) + + def get_build_status( + self, project_name, pipeline_name): # pragma: no cover + path = '/projects/{}/pipelines/{}'.format(project_name, pipeline_name) + url = self.url(path) + return self._api.get_dict(url) + + def get_log(self, build_id): # pragma: no cover + path = '/logs/{}'.format(build_id) + url = self.url(path) + return self._api.get_blob(url) + class AuthClient: |