简体   繁体   English

Jenkins中的Linux用户并安装到远程服务器

[英]Linux user in Jenkins and mounting to remote server

My question: What user does Jenkins use when running maven jobs. 我的问题: Jenkins在运行Maven作业时使用什么用户。 And what user is used when Jenkins is using a mounted share? 詹金斯使用挂载共享时,使用什么用户? I believe that this user doesn't have the right access. 我认为该用户没有正确的访问权限。 And due to security reasons I cant access the Jenkins machine and can't change access on the remote machine to verify my theory. 并且由于安全原因,我无法访问Jenkins机器,也无法更改对远程机器的访问以验证我的理论。

Background: 背景:

I have an Arquillian test case which is invoked by Jenkins through Maven/JUnit. 我有一个Arquillian测试用例,它由Jenkins通过Maven / JUnit调用。 Arquillian is supposed to deploy the war-file created to a remote machine. Arquillian应该将创建的war文件部署到远程计算机。 So far, so good. 到现在为止还挺好。 "wlsHome" below in the arquillian.xml file is mounted on the Jenkins machine to the remote machine. 下面的Arquillian.xml文件中的“ wlsHome”是在Jenkins计算机上安装到远程计算机的。

<configuration>
<property name="wlsHome">/global/xxx/xxxx/xxxxx/</property>
 <property name="adminUrl">t3://xxxxxx:8200</property>
 <property name="adminUserName">yyyyy</property>
 <property name="adminPassword">xxxxx</property>
 <property name="target">zzzzz</property>
</configuration>

Now this doesn't work and I get an NoClassDefFoundError 现在这不起作用,我收到了NoClassDefFoundError

WARNING: weblogic.Deployer terminated abnormally with exit code 1
Feb 11, 2014 9:48:27 AM org.jboss.arquillian.container.wls.WebLogicDeployerClient forkWebLogicDeployer
INFO: The output of the weblogic.Deployer process was:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
at weblogic.Deployer.<clinit>(Deployer.java:23)

Can you check if below jars are available on the target machine? 您可以检查目标机器上是否有以下jars? :

a. 一种。 BEA_HOME/wlserver/server/lib/wlclient.jar (not wlfullclient.jar) b. BEA_HOME / wlserver / server / lib / wlclient.jar(不是wlfullclient.jar)b。 BEA_HOME/modules/com.bea.core.descriptor.wl_1.3.3.0.jar BEA_HOME / modules / com.bea.core.descriptor.wl_1.3.3.0.jar

Thanks for the suggestions. 感谢您的建议。 It turns out that our wlsHome was set to 原来,我们的wlsHome设置为

/blabla/wlserver10.3/wlserver_10.3 and not /blabla/wlserver10.3 /blabla/wlserver10.3/wlserver_10.3而不是/blabla/wlserver10.3

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

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