我正在尝试将war文件从Jenkins部署到Weblogic 12服务器,并且它失败并显示以下错误消息。
CAN ANY ONE PLEASE COMMENT ON THE BELOW Jenkins console ERROR, NOT SURE WHAT I AM MISSING
$ "C:\Program Files\Java\jdk1.8.0_51\bin/java" -Xms512M -Xmx512M -cp C:\SOFTWA~1\WLS121~1\wls12130\wlserver\server\lib\weblogic.jar weblogic.Deployer -debug -remote -verbose -noexit -name trucks -targets AdminServer -adminurl t3://wsxxxx:7001 -user Admin -password pa$$w0rd -undeploy
[WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
[WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT...
$ "C:\Program Files\Java\jdk1.8.0_51\bin/java" -Xms512M -Xmx512M -cp C:\SOFTWA~1\WLS121~1\wls12130\wlserver\server\lib\weblogic.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name trucks -source C:\Users\aa\.jenkins\workspace\mytruck\target\trucks.war -targets AdminServer -adminurl t3://wsxxxx:7001 -user Admin -password pa$$w0rd -deploy
java.lang.RuntimeException: task completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:244)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
at hudson.model.Run.execute(Run.java:1766)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
[INFO] ------------------------------------------------------------------------
[INFO] DEPLOYMENT FAILURE
[INFO] ------------------------------------------------------------------------
Build step 'Deploy the artifact to any Weblogic environments' changed build result to FAILURE
Finished: FAILURE
答案 0 :(得分:0)
请务必使用BY_LOGIN的authMode,并在WebLogic Deployer配置文件的标记中设置登录名和密码。
<login>weblogic</login>
<password>password</password>
<authMode>BY_LOGIN</authMode>