【问题标题】:Teamcity - How to run spring boot jar on server after Build and Deploy?Teamcity - 构建和部署后如何在服务器上运行 spring boot jar?
【发布时间】:2016-01-25 02:47:54
【问题描述】:

我有一个基于 Spring boot 的 Rest API,嵌入了码头。通常我以java -Dloader.path=blablabla -jar blablabla.jar 开头。我已经配置了一个 teamcity 构建步骤来寻找 git repo 的新签入,拉取和构建(maven)项目,生成工件..

此外,我添加了一个依赖于构建步骤(成功完成和工件依赖)的部署步骤。在这里,我使用 powershell 将工件推送到我希望运行其余服务的服务器。

几个问题:

1) Powershell - 将文件从 teamcity 发布到服务器是否正确?

2) 如何让 teamcity 真正启动我的 Spring Boot 应用程序?某种远程命令执行?

注意:teamcity 服务器和应用服务器都是 Windows。

【问题讨论】:

    标签: java maven spring-boot teamcity build-automation


    【解决方案1】:

    自己解决了:

    1) 是的,powershell 非常巧妙地做到了这一点。

    2) 让它与[WMICLASS] 's create()Start-Process 的组合一起工作。检查我的答案here

    干杯!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-09
      • 2018-05-21
      • 2018-11-07
      • 2017-07-16
      • 2012-09-09
      • 1970-01-01
      相关资源
      最近更新 更多