The association between automated tests coming from a junit XML file and TTM tests is currently done in a dedicated ttm
binary.
That was good to prototype the concept but as the time goes, the tool doesn't need to evolve independently of tuleap and it's painful to deploy it.
The logic of association automated tests to TTM tests should be under Tuleap responsbility, exposed as a REST route that would be called from Jenkins with the XML files to parse.