Jenkins 使用 maven 出现C:\Windows\system32\config\systemprofile的解决
jenkins 使用 maven 出現 C:\Windows\system32\config\systemprofile 的原因是 Jenkins 服務啟動的賬號使用了系統的賬號,在服務里改成具體的桌面用戶賬號即可。
If your command runs fine on Win command prompt as user 'X', then you should run Jenkins with the same user.
This can be achieved by performing following steps:
1. Run > services.msc (Enter)
2. Select Jenkins service. Right-click and select Properties
3. Click on?Log On?tab
4. Select user 'X' and provide credentials
5. Restart Jenkins
In your case, the user 'X' seems to be?user.name?since the path to AVD as mentioned by you is?/users/user.name/.android
參考:
http://stackoverflow.com/questions/25801121/how-to-set-path-in-jenkins-for-directory-having-android-avd
轉載于:https://www.cnblogs.com/luodengxiong/p/5626246.html
總結
以上是生活随笔為你收集整理的Jenkins 使用 maven 出现C:\Windows\system32\config\systemprofile的解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《MOSSE》简述
- 下一篇: 超详细黑苹果安装图文教程送EFI配置合集