@featurepeek/circleci
For GitHub and CircleCI. See documentation.
When a PR kicks of CI, and the build succeeds, artifacts are uploaded to CircleCI's artifacts service. Then our script sends a POST to https://api.featurepeek.com/api/v1/TBD/static/circleci
with a body like
{
"api_key": "abcd1234",
"artifacts_url": "https://circleci.com/api/v1.1/project/github/featurepeek/wandb-core/8/artifacts",
"cutdirs": 6,
"org": "featurepeek",
"repo": "wandb-core",
"branch": "new-feature-branch",
}
Let me know if you want more info here. These Built-in Env Vars are helpful and easy to add.
cutdirs
is passed to wget
. It's useful for trimming off the initial 0/root/project
at the front of every artifacts path. You'll only need it if you do indeed use wget. wget is useful because it retains directory hierarchy of the artifacts instead of saving everything in a flat directory. But if you don't use wget, you can ignore it.
See the download.sh
file for bash script to download the files saved in artifacts.