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

blueflag/circle-get-artifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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