Skip to content

Instantly share code, notes, and snippets.

View mipaca's full-sized avatar

Mike Burrows mipaca

View GitHub Profile
@mipaca
mipaca / downloadArtifacts.sh
Created October 9, 2019 21:43 — forked from eddiewebb/downloadArtifacts.sh
Download CircleCI Artifacts with directory structure
#!/usr/bin/env bash
#
# Download all artitacts for given build, mimicing structure locally.
#
# Batch size is slighly misleading, as it;s only how many URLs to attempt before momentary pause
#
# Can be used on CCI builds with parallelism and will only download the files for matcing index.
#
#
USAGE="$0 username/repo 123 [bitbucket] [batch_size]"