stable
Clone or download
Read-only
Part of story #35093 execute custom code as artifact post action ActionsRunner cannot know if plugin TrackerCCE is installed or not and then if it can trigger CustomCodeExecutionTask. To fix that, ActionsRunner launch an event that collect a list PostCreationTask and then run them at the end of workflow. *Testing:* Create/Update an artifact, a debug entry should appear in log files : `CustomCodeExecutionTask called on artifact #id for changeset #id` Change-Id: I1db5411ad65e1fbaf62cce68c2dccd2ce2416e07
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/ActionsRunner.php | +42 | −25 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/PostCreationTaskCollectorEvent.php | +57 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Artifact/Changeset/PostCreation/ActionsRunnerTest.php | +34 | −0 | Go to diff View file |
M | plugins/tracker_cce/composer.json | +5 | −0 | Go to diff View file |
A | plugins/tracker_cce/include/TrackerCCE/CustomCodeExecutionTask.php | +40 | −0 | Go to diff View file |
M | plugins/tracker_cce/include/tracker_ccePlugin.php | +10 | −0 | Go to diff View file |
A | plugins/tracker_cce/tests/unit/CustomCodeExecutionTaskTest.php | +44 | −0 | Go to diff View file |