diff options
Diffstat (limited to 'ick2/projectapi.py')
-rw-r--r-- | ick2/projectapi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ick2/projectapi.py b/ick2/projectapi.py index ffa46bb..f351e8d 100644 --- a/ick2/projectapi.py +++ b/ick2/projectapi.py @@ -54,7 +54,7 @@ class ProjectAPI(ick2.ResourceApiBase): def trigger_project(self, project, **kwargs): # pragma: no cover with self._trans.modify('projects', project) as p: self._start_build(p) - return {'status': 'triggered'} + return {'status': ick2.BUILD_TRIGGERED} def _start_build(self, project): # pragma: no cover build_no = self._pick_build_number(project) @@ -70,7 +70,8 @@ class ProjectAPI(ick2.ResourceApiBase): 'worker': None, 'project': project['project'], 'parameters': parameters, - 'status': 'triggered', + 'status': ick2.BUILD_TRIGGERED, + 'exit_code': None, 'graph': {}, }) |