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:
The PUT request will appear in the logs like this:
The GET request will appear in the logs like this:
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