简体   繁体   English

Jenkins作为运行IOS Simulator的OSX上的服务用户

[英]Jenkins as service user on OSX running IOS Simulator

We are running Jenkins on an OSX server as a service user. 我们作为服务用户在OSX服务器上运行Jenkins。 The Jenkins user is restricted (not able to log in) because the server is accessible to the outside world. Jenkins用户受限制(无法登录),因为外部世界可以访问服务器。

We are running unit tests in the IOS Simulator. 我们在IOS模拟器中运行单元测试。 However, the simulator will start, but not run the app. 但是,模拟器将启动,但不会运行应用程序。 I believe this is because Jenkins' user does not have UI access/permissions because we can run the app when logged in with users directly on the machine with UI. 我相信这是因为Jenkins的用户没有UI访问/权限,因为我们可以直接在具有UI的计算机上与用户一起登录时运行应用程序。

Is there a way to add permissions to Jenkins user that will allow the IOS Simulator to run with UI without compromising security? 有没有办法为Jenkins用户添加权限,允许IOS模拟器在不影响安全性的情况下运行UI?

Are you running Jenkins as a daemon service? 您是否正在运行Jenkins作为守护程序服务? If so, it won't be able to interact with UI, see launchd man page 如果是这样,它将无法与UI交互,请参阅launchd手册页

I ran into the same problem before when trying to perform UI Automation, so I configured Jenkins as launch agent of a user, then I could run UI test from Jenkins as that user. 我在尝试执行UI自动化之前遇到了同样的问题,因此我将Jenkins配置为用户的启动代理,然后我可以作为该用户从Jenkins运行UI测试。

For security, maybe you can setup access control on Jenkins see Standard Security Setup 为了安全起见,您可以在Jenkins上设置访问控制,请参阅标准安全设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM