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
525 stars 223 forks source link

Different behaviour using build-scan and legacy build-scan #1344

Open mcanzerini opened 2 years ago

mcanzerini commented 2 years ago

Hi,

I am using jfrog cli version 2.8.3

When i run jfrog rt build-scan <build-name> <build-number>, i am getting an expected warning telling me that i use a deprecated command. The command runs whitout a problem though.

But if i run the new command jfrog build-scan <build-name> <build-number>, I get an error response :

[Error] Server response: 404 Not Found
404 page not found

I do not know if i missed something but i could not find the doc with the brand new build-scan command

Thanks

sverdlov93 commented 2 years ago

Hi @mcanzerini , Thanks for reporting this issue. Could you please provide the JFrog CLI version used in the task?

The new build scan command is supported by Xray version 3.37.0. Also, on the latest Jfrog CLI version (2.9.0) we validate the Xray version and print a warning if it's below the minimum supported version for the new build scan.

mcanzerini commented 2 years ago

Thanks for your answer. I am using jfrog cli version 2.8.3.

sverdlov93 commented 2 years ago

Got it, so upgrading to Xray to version 3.37.0 and up should work for you. And also upgrading CLI to version 2.9.0 will prompt a more informative message if your Xray server is under the minimum supported version.

Let us know if you have additional questions.