jfrog-cli
jfrog-cli copied to clipboard
jf rt bdi does not delete build artifacts
Describe the bug
Running jf rt bdi test-build --max-builds=1 --delete-artifacts deletes the build but not its artifacts.
The build was not promoted and the user has delete permissions both for the build and the artifact.
Current behavior
17:46:24 [Debug] JFrog CLI version: 2.61.0
17:46:24 [Debug] OS/Arch: linux/amd64
17:46:24 [Debug] Usage Report: Sending info...
17:46:24 [🔵Info] Discarding builds...
17:46:24 [Debug] Sending HTTP POST request to: https://artifactory.biz/artifactory/api/build/retention/test-build?async=false
17:46:24 [Debug] Sending HTTP GET request to: https://artifactory.biz/artifactory/api/system/version
17:46:24 [🔵Info] Builds discarded.
17:46:24 [Debug] Artifactory response: 200
17:46:24 [Debug] JFrog Artifactory version is: 7.84.16
17:46:24 [Debug] Sending HTTP POST request to: https://artifactory.biz/artifactory/api/system/usage
Build gets deleted, artifacts do not.
Reproduction steps
- Upload multiple artifacts and publish build info
- Run
jf rt bdi test-build --max-builds=1 --delete-artifacts - Check if build and artifacts get deleted
Expected behavior
Builds and artifacts get deleted
JFrog CLI version
jf version 2.61.0
Operating system type and version
OS/Arch: linux/amd64 (docker)
JFrog Artifactory version
7.84.16
JFrog Xray version
No response