How can I pass a parameter from Jenkins to TestNG. I want to pass the application URL as a parameter to my testNg file. The reason I want to do this is to run tests simultaneously on multiple test environments.
At the moment the url is in the testNg xml file
Here is a snapshot of my POM
<plugins>
<!-- surefire plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<suiteXmlFiles>
src/test/resources/testng.xml
</suiteXmlFiles>
<filtering>true</filtering>
</configuration>
</plugin>