You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: