Stage 2: Configure Artifactory as your Bazel Remote Cache

ARTIFACTORY: Integrate Artifactory with Bazel

AuthorFullName__c
Michael Akushky
articleNumber
000005942
ft:sourceType
Salesforce
FirstPublishedDate
2023-12-25T13:59:44Z
lastModifiedDate
2024-04-04T09:18:16Z
VersionNumber
4
To configure the generic repository you just created as your Bazel remote cache, run the bazel build command with the --remote_cache parameter pointing to your local repository. Go to the Generic repository Set-Me-Up menu to find your username, token, and JFrog host domain.

User-added image

Make sure to replace the placeholders in ​bold​​ with your own username, password, JFrog host domain, and repository path.
bazel build --remote_cache=http://<USERNAME>:<TOKEN>@<JFROG_HOST_DOMAIN>/<GENERIC_REPOSITORY_PATH>

During the build process, action result metadata is stored under the path /ac/, and output files are stored under the path /сas/, to be reused during the next build executions.