Skip to content

Commit

Permalink
empty archive
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <michaelsv@jfrog.com>
  • Loading branch information
sverdlov93 committed Feb 8, 2024
1 parent 977b0c8 commit b45db66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion artifactory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4222,7 +4222,7 @@ func TestUploadEmptyArchiveWithEmptyArchiveEnv(t *testing.T) {
defer setEnvCallBack()

// Upload & download zip file
assert.NoError(t, artifactoryCli.Exec("upload", "*.notexist", path.Join(tests.RtRepo1, zipName), "--archive", "zip"))
assert.NoError(t, artifactoryCli.Exec("upload", "*", path.Join(tests.RtRepo1, zipName), "--exclusions", "**", "--archive", "zip"))
assert.NoError(t, artifactoryCli.Exec("download", path.Join(tests.RtRepo1, zipName)))

// Check that the zip file uploaded and it's empty
Expand Down
2 changes: 1 addition & 1 deletion docs/common/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const (

JfrogCliUploadEmptyArchive = ` JFROG_CLI_UPLOAD_EMPTY_ARCHIVE
[Default: false]
Set to true if you'd like to upload an empty archive when '--archive' is set but no files are matched by the upload pattern. `
Set to true if you'd like to upload an empty archive when '--archive' is set but all files were excluded by exclusions pattern. `

JfrogCliEncryptionKey = ` JFROG_CLI_ENCRYPTION_KEY
If provided, encrypt the sensitive data stored in the config with the provided key. Must be exactly 32 characters.`
Expand Down

0 comments on commit b45db66

Please sign in to comment.