Stage 3: Validate the Connection

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
Verify that the integration was successful by finding the PUT and GET requests from the HTTP caching protocol in your Artifactory logs.

Bazel supports remote caching via the HTTP/1.1. protocol which uploads binary data (BLOB) via PUT requests, and downloads it via GET requests.

For example, for an environment with a Bazel remote cache where:
  • Generic repository name = cache-bazel
  • JFrog Host Domain = http://localhost:8082/artifactory/cache-bazel
  • SHA256 value of the action to upload/ download= 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b

The PUT request will appear in the logs like this:
PUT /artifactory/cache-bazel/cas/15e2b0d3c33891ebb0f1ef609ec419420c20e320ce94c65fbc8c3312448eb225 HTTP/1.1
Host: localhost:8082
Accept: */*
Content-Length: 9
Connection: Keep-Alive

0x310x320x330x340x350x360x370x380x39

The GET request will appear in the logs like this:
GET /artifactory/cache-bazel/ac/01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b HTTP/1.1
Host: localhost:8082
Accept: */*
Connection: Keep-Alive