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?
Yes, this is the standard behavior of the official cf cli.
https://github.com/cloudfoundry/cli
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!