Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jf rt upload --fail-no-op=false does not work #2717

Open
wum5r opened this issue Oct 8, 2024 · 0 comments
Open

jf rt upload --fail-no-op=false does not work #2717

wum5r opened this issue Oct 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wum5r
Copy link

wum5r commented Oct 8, 2024

Describe the bug

When I try to upload a not existing file with a file spec and set --fail-no-op=false (or skip it since its the default) the upload still exits with error code 1

Current behavior

.\jf.exe rt upload --spec=up_spec.json --url=https://artifactor-url/artifactory --user=user --password=pass --fail-no-op=false
12:53:04 [🔵Info] Log path: C:\Users\user.jfrog\logs\jfrog-cli.2024-10-08.12-53-04.19740.log
{
"status": "failure",
"totals": {
"success": 0,
"failure": 0
}
}
12:53:06 [🔵Info] Trace ID for JFrog Platform logs: c4bcbb1107cf6b3a
12:53:06 [🚨Error] upload finished with errors. Review the logs for more information
12:53:06 echo $LastExitCode
1

Log file states:
[Error] path does not exist: not_there.txt
[Error] path does not exist: not_there.txt
[Error] path does not exist: not_there.txt

Reproduction steps

Run an upload with the jf tool with the paramter --fail-no-op=false and check the exit code

Expected behavior

Exit code depends on the --fail-no-op parameter and is 0 when its set to false

JFrog CLI version

jf version 2.70.0

Operating system type and version

Windows 10 Enterprise 22H2

JFrog Artifactory version

No response

JFrog Xray version

No response

@wum5r wum5r added the bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant