stable
Clone or download
Read-only
Part of story #12187 configure workflow pre & post actions at target state level How to test: - force PostActionsUpdater to throw exception on second CI Build - Try to create 2 CI Build post action on a workflow transition : call PUT /tracker_workflow_transitions/:id/actions with Api Explorer with body { "post_actions": [ {"id": null, "type": "run_job", "job_url": "http://example.com"} {"id": null, "type": "run_job", "job_url": "throw exception with this one"} ] } --> 500 --> None of these 2 CI Build post action are created Change-Id: Id160c9598ec14f7aa6423ad56f5278be140e99de
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php | +6 | −1 | Go to diff View file |
M | plugins/tracker/include/workflow/PostAction/Update/PostActionsUpdater.php | +14 | −3 | Go to diff View file |
M | plugins/tracker/phpunit/Workflow/PostAction/Update/PostActionsUpdaterTest.php | +17 | −1 | Go to diff View file |
A | src/common/DB/TransactionExecutor.php | +44 | −0 | Go to diff View file |