Tomcat 中的 TeamCity 部署

TeamCity deployment in Tomcat

如何使用 TeamCity 在 Tomcat 中创建自动部署。我使用了容器部署器,但它总是说我已提交部署。

    [Step 6/8] org.codehaus.cargo.container.ContainerException: Failed to deploy [/home/aecktann/JetBrains/TeamCity/buildAgent/work/f8bcef79481c6bb2/target/ChatBot-1.0-SNAPSHOT.war]
, root cause is org.codehaus.cargo.container.*******.internal.TomcatManagerException: The Tomcat Manager responded "FAIL - Deployed application at context path /ChatBot-1.0-SNAPSHOT but context failed to start
" instead of the expected "OK" message
[16:41:40]  [Step 6/8] Step TomcatDeployer (Container Deployer) failed

看起来部署没有失败,所以不是 jenkins,可能是实际的应用程序没有启动,您是否使用相同的 jenkins 用户进行了手动部署?也可能是权限问题。

我正在解决这个问题。问题出在 Spring servlet 中,Tomcat 没有编译

Step 1/1: Deploy to localhost (Container Deployer)
[15:49:12]
[Step 1/1] org.codehaus.cargo.container.ContainerException: Failed to create deployable with implementation class org.codehaus.cargo.container.tomcat.TomcatWAR for the parameters (container [id = [tomcat8x]], deployable type [war]).
, root cause is java.io.FileNotFoundException: C:\BuildAgent\work266a51f2e66bcc (The system cannot find the file specified)
[15:49:12][Step 1/1] Step Deploy to localhost (Container Deployer) failed