Staging in Cloud Foundry - .cfignore

一笑奈何 提交于 2019-12-11 18:06:46

问题


We have .cfignore file mentioning the files that should not be staged in Cloud Foundry.

Through CF CLI tool, cf push is considering to ignore file mentioned in .cfignore before pushing files to Cloud Foundry.

But Jenkins configured using push to cloud foundry plugin does not consider ignoring the files mentioned in .cfignore

With this, Cloud Foundry some undesirable files at staging time, which makes staging failed.

How to resolve this error?


回答1:


Through CF CLI tool, cf push is considering to ignore file mentioned in .cfignore before pushing files to Cloud Foundry.

Yes, this is the standard behavior of the official cf cli.

https://github.com/cloudfoundry/cli

But Jenkins configured using push to cloud foundry plugin does not consider ignoring the files mentioned in .cfignore

The official cf cli is only one of many clients that can interact with the Cloud Foundry API. Just because the cf cli behaves one way, does not guarantee that other clients will behave the same way. If the client you've chosen to use does not behave the way you want open a bug/feature request with the author/owner of your client, or switch and use a different client that offers the functionality you want.

Hope that helps!



来源:https://stackoverflow.com/questions/54847855/staging-in-cloud-foundry-cfignore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!