Currently I have my own plugin to do the same.
You can add below plugin to your Maven
<plugin>
<groupId>in.mayurshah</groupId>
<artifactId>testng-xml-maker-maven-plugin</artifactId>
<version>1.0.1</version>
</plugin>
you can use below code to generate testng.xml file. Above plugin read environment variables, it can be from Jenkins and convert those to testng.xml file. You can further use that file as TestNG test suite. This file is generated on the fly. So integration with Jenkins is very easy.
Command:
mvn clean testng-xml-maker:make test
As you can see on above command, we first clean the code. We generate testng.xml file on the fly using command testng-xml-maker:make and one ready, we do test. Test will invoke maven-surefire-plugin and use testng.xml as a suite.
Hope that answer your questoin.