#jenkins #artifact #cli

app arty

Command line based browser and artifact downloader for jenkins!

2 releases

0.1.2 Jun 15, 2020
0.1.1 Jun 15, 2020
0.1.0 Jan 25, 2020

#1775 in Command line utilities

Download history 5/week @ 2023-11-13 6/week @ 2023-11-20 15/week @ 2023-11-27 4/week @ 2023-12-04 3/week @ 2023-12-18 6/week @ 2023-12-25 3/week @ 2024-01-01 5/week @ 2024-01-15 3/week @ 2024-01-22 13/week @ 2024-01-29 1/week @ 2024-02-05 21/week @ 2024-02-12 88/week @ 2024-02-19

123 downloads per month

MIT/Apache

20KB
245 lines

Arty

Command line based browser and artifact downloader for jenkins!

SUBCOMMANDS:
    get     Download artifacts from jenkins
    help    Prints this message or the help of the given subcommand(s)

get

Download artifacts from jenkins

USAGE:
    arty.exe get [OPTIONS] [JOB]

OPTIONS:
    -a, --artifacts <artifacts>
            filter results by artifact name

    -b, --build <build>
            filter results by build number

    -d, --download-dir <download-dir>
            download directory [env: ARTY_DOWNLOADS_DIR=]  [default: .]

    -j, --job <job>
            filter results by job name (will override positional argument)

    -p, --pipeline <pipeline>
            filter results by pipeline name

        --url <url>
            jenkins url [env: ARTY_JENKINS_URL=http://localhost:8080]  [default: http://localhost:8080]

ARGS:
    <JOB>
            filter results by job name

NOTE: Querying every artifact of every build would take forever! To work around this, artifacts are only queried once the search has been filtered to a single build.

Installing

  • Install Rust: https://rustup.rs/
  • Run $ cargo install arty
  • Make sure your cargo bin directory is on the PATH

Building from source

  • Install Rust: https://rustup.rs/
  • Run either of the following in the project root:
    • $ cargo run to quickly run in debug mode
    • $ cargo build --release to assemble an executable in target/release

Limitations

  • No support for user credentials (yet)
  • No tests
  • Might fail with an ugly error message
  • Developed for and only "tested" with multi-pipeline branches

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~8–16MB
~295K SLoC