jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
536 stars 234 forks source link

jfrog rt build-discard doesn't have --dry-run !? #2145

Open red8888 opened 1 year ago

red8888 commented 1 year ago

This is kind of hilarious. The ONE command I would most want --dry-run for does not have it?

I have dry run for delete, download, upload, but the command that could potentially wipe out an ENTIRE repo if misconfigured doesn't have it!?

I should be able to do jfrog rt build-discard ... --dry-run and have jfrog show me the builds it would have deleted.

Why is this switch conspicuously missing? I'm on version jf version 2.30.0 but I see nothing for the current version or in release notes- I might not be looking hard enough though.

DavidRadoorHummel commented 1 year ago

What is even more fun is that --max-builds cannot be 0. This means you cannot use this command to clear out a specific build, it will always leave at least 1.

Not sure if they fixed that, but a year ago that was a bug. Probably still is.

garethstockwell commented 11 months ago

Additionally, AFAICS (as of version 2.51) there is no option to ask the command to print out the builds which it is removing.