commit | b13e1d7ada957e576cccf7a33474e16679788cf7 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jun 20 15:08:45 2025 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jun 20 15:08:45 2025 -0700 |
tree | ccd78c58d5a1ff98bbb0f05cad0a55df29c13c95 | |
parent | 741d638b8414c0611355ca7fc1db177f51946f01 [diff] | |
parent | c3c068d9a331575369438e39ffa4b34be9033e9b [diff] |
Snap for 13675654 from c3c068d9a331575369438e39ffa4b34be9033e9b to androidx-appsearch-release Change-Id: I86eccbb144d5acab004e2caf4519c110ab69bf68
Fetch artifact is a tool for downloading artifacts from Android's continuous integration service.
target
: Required - The target you would like to download the artifact from.artifact
: Required - The artifact to download.build_id
or branch
, but not bothbuild_id
is provided, the script would download the artifact from that build_id
.branch
is provided, the script would download the artifact from the last known good build of that branch
.output
: Optional - If you would like the contents of the file to be written to a specific file.client_id
: Optional - If authorization is required to download the artifact, please set this parameter as your OAuth2.0 Client ID.secret
: Optional - If authorization is required to download the artifact, please set this parameter as your OAuth2.0 Client secret.port
: Optional - If you would like to specify the OAuth callback port to listen on. Default: 10502project_id
: Optional - The project id being used to access the fetch APIs.-
: Optional - If you would like the contents of the file to be written to stdout (must be the last arg)fetch_artifact -target=aosp_arm64-userdebug -build_id=7000390 -artifact=COPIED
fetch_artifact -target=aosp_arm64-userdebug -build_id=7000390 -artifact=COPIED -
fetch_artifact -target=aosp_arm64-trunk_staging-userdebug -branch=aosp-main -artifact=COPIED
In this case, you might need to create an OAuth 2.0 Client ID for a web application and set the redirect URI to http://localhost:<port>
(default port: 10502).
fetch_artifact -target=<restricted_target> -build_id=<id> -artifact=COPIED -client_id=<OAuth_client_id> -secret=<OAuth_client_secret>
If you are accessing the fetch APIs from a different project than your OAuth client, you will need to specify the -project_id
flag:
fetch_artifact -target=<restricted_target> -build_id=<id> -artifact=COPIED -client_id=<OAuth_client_id> -secret=<OAuth_client_secret> -project_id=<project_id>
OUT_DIR=out ./build