Scanning pre-existing builds

XRAY: How to index and scan existing builds and artifacts

AuthorFullName__c
David Kahan
articleNumber
000005667
FirstPublishedDate
2023-04-03T09:21:02Z
lastModifiedDate
2023-04-03

As previously mentioned, when existing builds are indexed in Indexed Resources, only future build versions will be scanned, not existing build versions. The following example shows Xray status as "Not Scanned" for pre-existing build versions.

User-added image


To explicitly request a scan for a pre-existing build version, you can use the JFrog CLI command or Rest API.

For example, to scan an existing build version of "test-build" using JFrog CLI, you could use the following command:

jf bs test-build 3
In the UI, the Xray status will change to "Pending Scan," as shown below:

User-added image


Once the build version has been scanned, you can view the details of the Xray scan by selecting the build ID.