Answer the question
In order to leave comments, you need to log in
Jenkins. Weblogic Deployer Plugin. When performing the deployment task, it does not find the final ear?
Jenkins 1.506, WebLogic is running on the slave machine: 10.3.6.0, jdk 1.6.0_32
There are two Jenkins slave jobs:
No. 1:
1. The maven project is updated from the repository.
2. maven clean install
№2
1. The assembled example.ear is deployed using Weblogic Deployer Plugin v.2.0
Both tasks are marked as successful, but, unfortunately, the deployment does not occur.
This is the log output by Jenkins:
Started by user anonymous
Building remotely on foo.bar.com in workspace /home/user/jenkins/workspace/test
[WeblogicDeploymentPlugin] - jdk selected: /usr/bin/java
[WeblogicDeploymentPlugin] - Pay attention of Jdk version {selected version is 1.6.0_32} compatibility with Weblogic Deployer API (see Oracle documentation).
[WeblogicDeploymentPlugin] - the JDK /etc/alternatives/jdk/ will be used.
[WeblogicDeploymentPlugin] - ArtifactSelector used: org.jen[email protected]1aa5fff
[WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on example.ear]…
ERROR: [WeblogicDeploymentPlugin] - Failed to get artifact from archive directory: [WeblogicDeploymentPlugin] - No artifact to deploy [example.ear] found.
[INFO] - [INFO] DEPLOYMENT SUCCESS
[INFO] - Finished: SUCCESS
Answer the question
In order to leave comments, you need to log in
I am not familiar with the WebLogic plugin, but why are there 2 jobs instead of one? They have a different workspace, so, apparently, they don’t find it.
Achieved the following:
[WeblogicDeploymentPlugin] - jdk selected: /usr/bin/java
[WeblogicDeploymentPlugin] - Pay attention of Jdk version {selected version is 1.6.0_32} compatibility with Weblogic Deployer API (see Oracle documentation).
[WeblogicDeploymentPlugin] - the JDK /etc/alternatives/jdk/ will be used.
[WeblogicDeploymentPlugin] - ArtifactSelector used: org.jenkinsci.plugins.deploy.weblogic.Maven[email protected]
[WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on example.ear]…
[WeblogicDeploymentPlugin] - 3 artifacts recorded in /home/nexus/. jenkins/jobs/test/modules/com.example.war/builds/2013-03-25_13-47-05/archive
[WeblogicDeploymentPlugin] - the following artifact example.war-1.3-sources.jar doesn't match example.ear -1.3.ear
[WeblogicDeploymentPlugin] - the following artifact example.war-1.3.pom doesn't match example.ear-1.3.ear
[WeblogicDeploymentPlugin] - the following artifact example.war-1.3.war doesn't match example.ear-1.3.ear
[WeblogicDeploymentPlugin] - 2 artifacts recorded in /home/nexus/.jenkins/jobs/test/modules/com.example$example.ear/builds/2013-03-25_13-47-05/archive
[WeblogicDeploymentPlugin] - the following artifact recorded example.ear-1.3.ear is eligible.
[WeblogicDeploymentPlugin] - the following artifactexample.ear-1.3.pom doesn't match example.ear-1.3.ear
[WeblogicDeploymentPlugin] - 1 artifacts recorded in /home/nexus/.jenkins/jobs/test/modules/com.example$ example.parent/builds/2013-03-25_13-47-04/archive
[WeblogicDeploymentPlugin] - the following artifact example.parent-1.3.pom doesn't match example.ear-1.3.ear
[WeblogicDeploymentPlugin] - Deploying the artifact on the following target: (name=EXAMPLE) (host=foo.bar.. com) (port=7001)
[WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT…
$ /etc/alternatives/jdk/bin/java -Xms512M -Xmx512M -cp /home/nexus/.jenkins/jobs/weblogic.jar weblogic.Deployer -debug - remote -verbose -noexit -name example.ear-1 -targets AdminServ -adminurl t3://foo.bar.com:7001 -user weblogic -password weblogic1 -undeploy
[WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
[WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT…
$ /etc/alternatives/jdk/bin/java -Xms512M -Xmx512M -cp /home/nexus/.jenkins/jobs/weblogic.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name example.ear-1 -source "/home/nexus/.jenkins/jobs/test/modules/com.example$example.ear/builds/2013-03-25_13-47-05/archive/com.example$example.ear/1.3/example .ear-1.3.ear" -targets AdminServ -adminurl t3://foo.bar.com:7001 -user weblogic -password weblogic1 -deploy
ERROR: [WeblogicDeploymentPlugin] - Command /etc/alternatives/jdk/bin/java|-Xms512M|-Xmx512M|-cp|/home/nexus/.jenkins/jobs/weblogic.jar|weblogic.Deployer|-debug|-stage |-remote|-verbose|-upload|-name|example.ear-1|-source|/home/nexus/.jenkins/jobs/test/modules/com.example$example.ear/builds/2013-03- 25_13-47-05/archive/com.example/example.ear/1.3/example.ear-1.3.ear|-targets|AdminServ|-adminurl|t3://foo.bar.com:7001|-user|weblogic |-password|weblogic1|-deploy completed abnormally (exit code = 1)
java.lang.RuntimeException: Command /etc/alternatives/jdk/bin/java|-Xms512M|-Xmx512M|-cp|/home/nexus/.jenkins/jobs/weblogic.jar|weblogic.Deployer|-debug|-stage |-remote|-verbose|-upload|-name|example.ear-1|-source|/home/nexus/.jenkins/jobs/test/modules/com.example$example.ear/builds/2013-03- 25_13-47-05/archive/com.example/example.ear/1.3/example.ear-1.3.ear|-targets|AdminServ|-adminurl|t3://foo.bar.com:7001|-user|weblogic |-password|weblogic1|-deploy completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:164)
at org.jenkinsci.plugins.deploy.weblogic. WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:220)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:820)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:792
) )
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:739)
at hudson.model.Run.execute(Run.java:1592)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
at hudson .model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
[INFO] - [INFO] DEPLOYMENT SUCCESS
[INFO] - Finished: SUCCESS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question