GithubHelp home page GithubHelp logo

outofbedlam / dnazart Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 21 KB

command line tool downloading artifacts from azure devops pipelines

Makefile 1.85% Go 80.30% Shell 17.85%
cli tool azure devops pipelines artifacts

dnazart's Introduction

Download Azure Pipeline Artifacts

To use dnazart, it is required to set PAT environment variable

$ export AZURE_DEVOPS_EXT_PAT='xxxxxxxx'

or it is also possible passing PAT with argument -p

$ dnazart -p xxxxxxxx .... other args ...

Usage

$ dnazart --help

Usage: dnazart COMMAND [arg...]

download artifact files from Azure DevOps Pipelines
                  
Commands:         
  version         show version
  download        download artifacts
  hist, history   list builds history
                  
Run 'dnazart COMMAND --help' for more information on a command.

List build history

$ dnazart history <organization> <project>
  • output example
BuildId  BuildNumber                     Status     FinishTime
121      your_build_master_20210813.2   ✓ Success  2021-08-13T08:19:28.9561614Z
120      your_build_master_20210813.1   ✓ Success  2021-08-13T06:22:01.6570432Z
119      your_build_master_20210812.2   ✓ Success  2021-08-12T08:15:38.882945Z
118      your_build_master_20210812.1   ✓ Success  2021-08-12T01:16:16.8851851Z
117      your_build_master_20210811.6   ✓ Success  2021-08-11T05:00:57.8963808Z
116      your_build_master_20210811.5   ✓ Success  2021-08-11T03:25:23.8824055Z
115      your_build_master_20210811.4   𐄂 Fail     2021-08-11T01:21:50.6766667Z
114      your_build_master_20210811.3   𐄂 Fail     2021-08-11T00:22:18.8291786Z
  • options
Usage: dnazart hist [-n=<limit>] [-p=<PAT>] ORG PRJ

list builds history
               
Arguments:     
  ORG          organization
  PRJ          project
               
Options:       
  -n, --num    limit number of output, 0: no limit (default 0)
  -p, --pat    PAT

Download artifact from build

  • download artifact from latest build.
$ dnazart download <organization> <project>
  • download from a specific build
$ dnazart download <organization> <project> <BuildId>
  • options
Usage: dnazart download [-d] [-f] [-p=<PAT>] [-o=<output path>] ORG PRJ [BUILDID]

download artifacts
                
Arguments:      
  ORG           organization
  PRJ           project
  BUILDID       build id (default "latest")
                
Options:        
  -d, --dry     dry-run, print download url without actual downloading
  -f, --force   overwrite if output file exists
  -o, --out     output directory (default ".")
  -p, --pat     PAT

dnazart's People

Contributors

outofbedlam avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.