When I ran my TestNG project through Jenkins, I got an exception. Can you please help me?

This is the exception I got on the console output:

Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: testSuiteXmlFiles0 has null

Hello Matthew,

You need to specify your test.xml file in configuration section in the pom.xml file so that test get picked to execute. Please refer the below section of xml:

<configuration>
                    <suiteXmlFiles>
                        <!--suppress UnresolvedMavenProperty -->
                        <suiteXmlFile>test.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>