How do I configure Jenkins Maven job such that certain Appium tests can run on simulator and others can run on real device (iPhone)?

Currently my Jenkins (maven) job is configured to run tests on a simulator. We pass the testng.xml in pom.xml as shown below. I want to run certain tests on a real device so I made a second testng.xml locally that contains device information to run them on a real iPhone. How do I modify my Jenkins configuration such that it can run tests on device as well as simulator too? Where should these additional device settings (like UDID etc) go?

Code snippet from current pom.xml :

 <build>
      <plugins>
		  <plugin>
			  <groupId>org.apache.maven.plugins</groupId>
			  <artifactId>maven-surefire-plugin</artifactId>
			  <version>3.0.0-M3</version>
			  <configuration>
				  <source>1.8</source>
				  <target>1.8</target>
				  <suiteXmlFiles>
					  <suiteXmlFile>testng.xml</suiteXmlFile>
				  </suiteXmlFiles>
				  <properties>
					  <property>
						  <name>junit</name>
						  <value>false</value>
					  </property>
					  <property>
						  <name>surefire.testng.verbose</name>
						  <value>10</value>
					  </property>
				  </properties>
				  <threadCount>1</threadCount>
			  </configuration>
		  </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.5.1</version>
              <configuration>
                  <source>1.8</source>
                  <target>1.8</target>
              </configuration>
          </plugin>
      </plugins>
  </build>

Code snippet from the Pipeline script that’s defined in Jenkins configuration:

stage ('Executing Tests') {
            steps {
                sh '''
                rm -rf /Users/ebmob/jenkins/workspace/ios-automation-maven/fail-videos/
                '''
                slackSend (color: '#FFA500', message: "Executing Tests: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})", channel: 'jenkins-iosautomation')
                dir ('.') {
                    sh '''
                    /usr/local/bin/mvn clean compile
                    /usr/local/bin/mvn test
                    '''
                }   
            }
        }

It’s removing failed videos from older build runs first and then starting a new run through commands like ‘mvn clean compile’ and 'mvn test’