Implement initial version of fetch_artifact

BUG=121042212

Change-Id: Ib6a701df8c28decd48771c65ca9f618c8d0cf8fe
4 files changed
tree: 5cd5da7590dab4ea1bd935542a00d251e7783bb5
  1. .gitignore
  2. OWNERS
  3. README.md
  4. build.sh
  5. fetch_artifact.go
README.md

Fetch Artifact

Fetch artifact is a tool for downloading artifacts from Android's continuous integration service.

Options

  • target: Required - The target you would like to download the artifact from.
  • build_id: Required - The build_id of the target to download the artifact from.
  • artifact: Required - The artifact to download.
  • output: Optional - If you would like the contents of the file to be written to a specific file
  • -: Optional - If you would like the contents of the file to be written to stdout (must be the last arg)

Example useage

fetch_artifact -target=aosp_arm64-userdebug -build_id=7000390 -artifact=COPIED

Streaming contents to stdout

fetch_artifact -target=aosp_arm64-userdebug -build_id=7000390 -artifact=COPIED -

Development

Building

OUT_DIR=out ./build