Xcode cloud - access to environmental variables inside a test's code

I run my tests on xcode cloud and I want to change different configurations when the tests run on the cloud as opposed to when the run locally. I thought environmental variables should be the way, but I'm not sure how to access them. I tried:

ProcessInfo.processInfo.environment["CI"]

But didn't get any result. Any ideas how can it be done?