【问题标题】:Not able to deploy to Websphere Application server 8.5 through Jenkins无法通过 Jenkins 部署到 Websphere Application server 8.5
【发布时间】:2017-12-17 10:05:54
【问题描述】:

我收到以下错误: 通过 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 配置:

请有人建议我缺少什么。我下载了 Maven 插件和 Websphere 部署插件。我的构建越来越成功,并且项目正在被复制到 .jenkins/workplace 文件夹中,但是当它试图部署到 WAS 时,我收到了这个错误。请指导我。

【问题讨论】:

  • 看起来你正在发动一场战争,但试图部署一只耳朵。你调试过这方面吗?
  • 也试过了,但没有成功。同样的错误。

标签: java jenkins deployment websphere


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-22
    • 2015-05-19
    • 2012-07-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-07
    相关资源
    最近更新 更多