Jenkins 使用 maven 出现C:Windowssystem32configsystemprofile的解决

Posted 香巴拉

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jenkins 使用 maven 出现C:Windowssystem32configsystemprofile的解决相关的知识,希望对你有一定的参考价值。

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

以上是关于Jenkins 使用 maven 出现C:Windowssystem32configsystemprofile的解决的主要内容,如果未能解决你的问题,请参考以下文章

Jenkins 中的 Maven 发布问题

Jenkins编译过程中出现ERROR_ Failed to parse POMs错误

记录jenkins+maven结合私服nexus-2.11.1升级nexus-3.49.0后出现的问题

是否有 Maven 插件来创建 Jenkins 作业

出现 OutOfMemoryError:在詹金斯中执行 maven 构建时 PermGen 空间

jenkins+maven+git持续集成部署问题总结