Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Latest commit

 

History

History
36 lines (26 loc) · 1.23 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.23 KB

circle-get-artifact

Get all artifacts from the most recent successful Circle CI build or a subpath path from the artifacts and places them in a local directory outputdir

Install

Circle get artifact can be installed using NPM.

npm install -g circle-get-artifact

Usage

  Usage: circle-get-artifact [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -t, --token [value]    (Required) CircleCI Authentication Token
    -b, --buildnum <n>     Specify a build number, or we take latest
    -u, --user [value]     (Required) Build git repository username
    -p, --project [value]  (Required) Build git repository project
    --branch [value]       Branch to get builds from
    --path [value]         Path of files to download
    --outputdir [value]    path of local output directory output artifacts defaults to "./"
    --config [value]       specify a json config
    --print-paths          print file paths

###Example

 circle-get-artifact --token "abcdefg01234012301230123012301230123" --user "blueflag" --project "moneypenny" --branch "master" --path '/home/ubuntu/'

Create tokens using account settings page https://circleci.com/account/api