cf-java-client icon indicating copy to clipboard operation
cf-java-client copied to clipboard

Filter Source Control Directories During Push

Open nebhale opened this issue 6 years ago • 8 comments

Currently, nothing is automatically filtered from an application when it is pushed. This diverges from the CLI’s behavior which filters out source control directories and possibly all hidden directories. The CLI team has taken a task to document the behavior they’d like to support as a contract and once that documentation is in place, the Client should implement the same filtering.

nebhale avatar Aug 31 '17 20:08 nebhale

/cc @dkoper

nebhale avatar Aug 31 '17 20:08 nebhale

I was wrong on the hidden directories. We only automatically ignore what's been documented: https://docs.cloudfoundry.org/devguide/deploy-apps/prepare-to-deploy.html#exclude

dkoper avatar Sep 05 '17 00:09 dkoper

Thanks for the pointer @dkoper.

nebhale avatar Sep 05 '17 13:09 nebhale

Related to #330

nebhale avatar Oct 26 '17 17:10 nebhale

Hi team,

As I've written, I would like to know the status of this issue.

Has source control directories filter been implemented in cf-java-client or not?

nota-ja avatar May 23 '19 11:05 nota-ja

hi ,

is there any workaround solution available for this issue??

parasuram-tanguturu avatar Jun 14 '19 11:06 parasuram-tanguturu

I also experience this issue. My workaround looks like this (in my Jenkinsfile):

steps {
                sh 'rm -rf .git'
                pushToCloudFoundry( ...

It is also imaginable to to "chmod -R +r .git" instead. Because of #810 and #330 still being open I don't see any cleaner approach for this.

bjoern-thalheim avatar Aug 08 '19 07:08 bjoern-thalheim

Excellent , the above solution worked

deepualan avatar Nov 13 '19 07:11 deepualan