无法将Jenkins配置为在cloud foundry上部署spring启动应用程序
我有一个无法将Jenkins配置为在cloud foundry上部署spring启动应用程序,jenkins,spring-boot,cloud,cloud-foundry,Jenkins,Spring Boot,Cloud,Cloud Foundry,我有一个springboot应用程序,它公开了RESTapi(http://localhost:8080/hello-world rest演示/api/hello)并打印hello world字符串 我已经通过Jenkins在本地和远程Tomcat上成功地部署了这个应用程序,它工作正常,没有任何问题。在成功创建manifest.yml文件后,我还通过CLI使用cf push命令将其部署到我的Cloud Foundry帐户,并正在按预期运行(https://hello-world-rest-dem
springboot
应用程序,它公开了REST
api(http://localhost:8080/hello-world rest演示/api/hello
)并打印hello world
字符串
我已经通过Jenkins
在本地和远程Tomcat
上成功地部署了这个应用程序,它工作正常,没有任何问题。在成功创建manifest.yml
文件后,我还通过CLI
使用cf push
命令将其部署到我的Cloud Foundry
帐户,并正在按预期运行(https://hello-world-rest-demo.cfapps.io/api/hello
返回200
状态代码并打印Hello World
)
但是,问题是我的Jenkins
与Cloud Foundry
的集成没有按预期工作,我无法通过Jenkins
部署它(在未安装Cloud Foundry
CLI
的单独物理机器上运行)
不知道我在这里错过了什么
manifest.yml
---
applications:
- name: hello-world-rest-demo
path: target/hello-world-rest-demo.war
开始工作了
将目标url更改为:
https://api.run.pivotal.io
您需要为目标提供Cloud Foundry API端点。对于关键Web服务,API端点为https://api.run.pivotal.io