jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

Build promotion dry run.. actually promotes build when --status is also passed

Open dwebsterhbc opened this issue 1 year ago • 0 comments

Describe the bug

Hey all,

It seems like --dry-run is not honoured with jf 2.73.0 when --status is also passed:

root@eca30776fea4:~# jf rt bpr --project foo --status --dry-run foobar 1.0.23 foo-docker-uat-local
12:44:44 [🔵Info] Promoting build...
12:44:45 [🔵Info] Promoted build foobar/1.0.23 to: foo-docker-uat-local repository.

but drop --status and:

root@eca30776fea4:~# jf rt bpr --project foo --dry-run foobar 1.0.23 foo-docker-uat-local
12:49:27 [🔵Info] [Dry run] Promoting build...
12:49:28 [🔵Info] Promoted build foobar/1.0.23 to: foo-docker-uat-local repository.
root@eca30776fea4:~#

Current behavior

Build is errantly promoted.

Reproduction steps

No response

Expected behavior

Dry run as per the above second example.

JFrog CLI version

2.73.0

Operating system type and version

UBI9.5 container

JFrog Artifactory version

Current cloud

JFrog Xray version

Current cloud

dwebsterhbc avatar Mar 06 '25 12:03 dwebsterhbc