Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法将Jenkins配置为在cloud foundry上部署spring启动应用程序_Jenkins_Spring Boot_Cloud_Cloud Foundry - Fatal编程技术网

无法将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