How do I connect adb to a Genymotion SaaS virtual device from a CI runner?

Last verified against genymotion.com:

Use gmsaas in your CI job to authenticate, set the Android SDK path, start the device, then run gmsaas instances adbconnect on the instance UUID. After that, adb devices should show a localhost:PORT entry for the running device. Source: How to connect a virtual device to ADB in Genymotion SaaS?

pip3 install gmsaas
gmsaas auth token <your_api_token>
gmsaas config set android-sdk-path <sdk_path>
gmsaas doctor
gmsaas instances adbconnect <instance_uuid>
adb devices

If you want, you can omit the UUID only when exactly one SaaS device is online. You can also pass --adb-serial-port <PORT> to force a specific local port. The documentation notes that connecting by IP is not supported. Source: How to connect a virtual device to ADB in Genymotion SaaS?