无法通过Jenkins部署到Websphere Application Server 8.5

时间:2017-12-17 10:05:54

标签: java jenkins deployment websphere

我收到以下错误: “通过Jenkins进行部署时,”在路径中找不到可部署的工件。

[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building Activation 0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Activation ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Activation ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ Activation ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 9 source files to C:\Users\.jenkins\workspace\TestBuild\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Activation ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ Activation ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ Activation ---
[JENKINS] Recording test results
[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ Activation ---
[INFO] Packaging webapp
[INFO] Assembling webapp [Activation] in [C:\Users\.jenkins\workspace\TestBuild\target\Activation-0.1]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\.jenkins\workspace\TestBuild\src\main\webapp]
[INFO] Webapp assembled in [462 msecs]
[INFO] Building war: C:\Users\.jenkins\workspace\TestBuild\target\Activation-0.1.war
[INFO] WEB-INF\web.xml already added, skipping
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ Activation ---
[INFO] Installing C:\Users\.jenkins\workspace\TestBuild\target\Activation-0.1.war to C:\Users\.m2\repository\com\ibm\rest\Activation\0.1\Activation-0.1.war
[INFO] Installing C:\Users\.jenkins\workspace\TestBuild\pom.xml to    C:\Users\.m2\repository\com\ibm\rest\Activation\0.1\Activation-0.1.pom
    [JENKINS] Archiving disabled
    [JENKINS] Archiving disabled
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 8.926 s
    [INFO] Finished at: 2017-12-17T15:19:38+05:30
    [INFO] Final Memory: 23M/254M
    [INFO] ------------------------------------------------------------------------
    channel stopped
    Connecting to IBM WebSphere Application Server...
    No deployable artifacts found in path: C:\Users\.jenkins\workspace\modules/**lastSuccessful/**/Activation-*.ear
    Error deploying to IBM WebSphere Application Server: java.lang.Exception: No deployable artifacts found!
        at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.gatherArtifactPaths(WebSphereDeployerPlugin.java:286)
        at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:196)
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
        at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)
        at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
        at hudson.model.Run.execute(Run.java:1749)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:421)

以下是我的Jenkins配置:

enter image description here enter image description here

enter image description here

有人请告诉我我缺少的东西。我下载了Maven插件和Websphere Deploy插件。我的构建成功,并且项目正在.jenkins / workplace文件夹中复制,但是当它尝试部署到WAS时,我收到此错误。请指导我。

1 个答案:

答案 0 :(得分:0)

如果您只为“EAR路径”部署1个EAR文件,请使用** / * .ear。它应该找到它。如果您正在部署WAR,请使用** / * .war,它将为您生成EAR。