How do I run Android instrumented tests in Jenkins using cloud-hosted virtual devices?
Start a Genymotion SaaS instance, connect it to ADB, then run ./gradlew connectedAndroidTest in Jenkins. The documented flow is to start with gmsaas instances start, connect with gmsaas instances adbconnect, and stop the instance afterward with gmsaas instances stop.Automation Features Genymotion for Enterprises
1. Create a Genymotion SaaS API token and authenticate gmsaas.
2. Start the cloud device from the Jenkins job.
3. Connect the instance to ADB.
4. Run your Android instrumented tests.
5. Stop the instance when the job finishes.
Relevant docs: