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

Output rt atc json to stdout

Open Chasarr opened this issue 1 month ago • 0 comments

Describe the bug

Currently when running say jf atc blabla_generate_error_please you get this output:

$ export CI=true
$ jf atc blabla_generate_error_please >file.txt 2>err.txt
$ cat file.txt # Nothing
$ cat err.txt
15:48:56 [Info] Trace ID for JFrog Platform logs: a0bbed4710e6ae4d
15:48:56 [Error] server response: 403 Forbidden
{
  "errors": [
    {
      "code": "FORBIDDEN",
      "message": "Forbidden"
    }
  ]
}

However, when creating solution for CI interfaces, you may want to parse this message and handle the errors. I see two potential solutions:

  1. CI=true disables extra error dumping that doesn't conform to JSON
  2. Separate the outputs into two different output streams

JFrog CLI version

2.82.0

Operating system type and version

Arch Linux, rolling release and recently updated

JFrog Artifactory version

Enterprise Plus 7.117.14 rev 81714900

Chasarr avatar Nov 03 '25 14:11 Chasarr