Unable to build to Android at all - "ERROR: GetBuildPlatform: No BuildPlatform found for Android"

Sorry for the necro here but I’ve run into a very similar issue and this is the closest thing I’ve found in regards to it (spent about 2 days researching). I get the same error however only when I execute the build through Jenkins. When I run UAT through CMD or cook in the editor it works fine.

Something I found that was interesting was that since Jenkins is a service it might not have permissions. However the fail is happening in the UnrealBuildTool and not in Jenkins. What is the difference between running UnrealBuildTool via Jenkins vs running it via CMD?

Thanks in advance!