Open cdivitotawela opened 4 months ago
Having the same issue. Trying to eclude .git, .github, .terraform. The only thing that works is using
Same issue here - my intended workaround is to use rsync
to copy the directory to somewhere else but excluding the files I don't want, and then using jf
to upload the temporary directory which has already been sanitised. But this is a frustrating bug, especially since the documentation states explicitly that this is possible in the last paragraph.
Describe the bug
Using following command to publish a terraform module and want to exclude .git and .github directories. Published module zip file contains the excluded directories.
jf terraform publish --namespace mynamespace --provider azurerm --tag 'v0.0.8' --exclusions "\*.git\*"
Tried different options
--exclusions '.git;.github'
and none seems to be working.I can see DEBUG logs indicate it ignored .git directory but it is still included.
Following instruction in https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory/package-managers-integration#terraform-publish example 2
Current behavior
Cannot exclude files using
--exclusions
when publishing terraform moduleReproduction steps
jf terraform publish --namespace mynamespace --provider azurerm --tag 'v0.0.8' --exclusions "\*.git\*"
Expected behavior
Any file, directory added in
--exclusions
argument must be excluded from the zip file uploaded to ArtifactoryJFrog CLI version
jf version 2.56.0
Operating system type and version
OSX
JFrog Artifactory version
Cloud
JFrog Xray version
No response