0

我有一个Spring Boot应用程序,该应用程序公开REST api(http://localhost:8080/hello-world-rest-demo/api/hello)并打印Hello World字符串。无法配置Jenkins在云代工厂部署弹簧引导应用程序

我已经成功地在本地和远程TomcatJenkins上部署了这个应用程序,它工作正常,没有任何问题。我已经使用cf push命令通过CLI成功创建了manifest.yml文件,并且正在运行预期的(https://hello-world-rest-demo.cfapps.io/api/hello返回200状态码并打印Hello World),并将其部署到我的Cloud Foundry帐户。

然而,问题是,我与Cloud FoundryJenkins整合工作不正常,我无法通过Jenkins部署它(这Cloud FoundryCLI安装不具有单独的物理机器上运行)。

不知道我在这里错过了什么。

enter image description here

manifest.yml

--- 
applications: 
- name: hello-world-rest-demo 
    path: target/hello-world-rest-demo.war 

回答

1

你需要给Cloud Foundry的API端点为目标。对于Pivotal Web服务,API端点是https://api.run.pivotal.io

0

得到它的工作!

改变了目标网址:https://api.run.pivotal.io

相关问题