If you run Jenkins as a service in the background it won't open apps in the foreground. You may either try to run it not as a service in the foreground, or run it as a Local System account and check Allow the service to interact with desktop option. In the latter case you may get into permission problems, though.
1、进入服务,把jenkinsslave-d__jenkins服务,允许服务与桌面交互打上勾,确定并重启该服务
2、进入服务,停止Interactive Services Detection并设置为禁用