My code depends on some thirdparty artifacts, that are put in some authenticated repo. WORKSPACE file is like this
http_archive(
name = "glog_archive",
build_file = "@//:third_party/BUILD.glog",
sha256 = "SOME SHA ID",
url = "https://artifactory/thirdparty/glog.<version>.tar.gz",
)
But repo https://artifactory/thirdparty/ is authenticated.
How can I put user/password or API key so that download of thirdparty archives works well?
Went through this doc https://docs.bazel.build/versions/master/repo/http.html#http_archive-auth_patterns
But couldnot get it correctly.
If there any example I can get?
Thanks
-Gaurav