daleretto
@daleretto

Jenkins. Weblogic Deployer Plugin. При выполнении задачи деплоя не находит конечный ear?

Jenkins 1.506, на slave-машине запущен WebLogic: 10.3.6.0, jdk 1.6.0_32

Существует два Jenkins slave job:

№1:

1. Из репозитория апдейтится мавен-проект.

2. maven clean install

№2

1. Собранный example.ear деплоится с помощью Weblogic Deployer Plugin v.2.0

Оба таска отмечаются как успешные, но, к моему сожалению, деплой не происходит.



Вот такой лог выдает 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.jenkinsci.plugins.deploy.weblogic.FreeStyleJobArtifactSelectorImpl@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




Пните, пожалуйста, в каком направлении копать?
  • Вопрос задан
  • 4439 просмотров
Пригласить эксперта
Ответы на вопрос 2
@joneleth
C WebLogic плагином не знаком, а почему вообще 2 job-а вместо одного? У них же workspace разный, вот, видимо, и не находит.
Ответ написан
daleretto
@daleretto Автор вопроса
Добился следующего:
[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.MavenJobArtifactSelectorImpl@16bb184
[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.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:947)
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
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы