@@ -10,13 +10,16 @@ A simple Jenkins command line client to serve your needs.
1010 - [ Supported Platforms] ( #supported-platforms )
1111 - [ Installation] ( #installation )
1212 - [ from Homebrew] ( #from-homebrew )
13+ - [ Updating Bartlett with Homebrew] ( #updating-bartlett-with-homebrew )
1314 - [ from Source] ( #from-source )
1415 - [ Getting Help] ( #getting-help )
1516 - [ Usage] ( #usage )
1617 - [ Getting Help at the Command Line] ( #getting-help-at-the-command-line )
1718 - [ Querying Existing Jobs] ( #querying-existing-jobs )
1819 - [ Triggering Job Builds] ( #triggering-job-builds )
1920 - [ Managing Job Configurations] ( #managing-job-configurations )
21+ - [ Deleting Existing Jobs] ( #deleting-existing-jobs )
22+ - [ Downloading Artifacts for a Given Job] ( #downloading-artifacts-for-a-given-job )
2023 - [ Configuring Profiles] ( #configuring-profiles )
2124 - [ Supported Configuration Values] ( #supported-configuration-values )
2225 - [ A note on password storage] ( #a-note-on-password-storage )
@@ -76,8 +79,38 @@ please check
7679
7780### from Homebrew
7881
79- Please track the following issue for Homebrew support:
80- https://github.com/Nike-Inc/bartlett/issues/4
82+ Homebrew is an OSX specific application that allows users to install
83+ applications that didn't come with Apple's operating system.
84+
85+ For help installing Homebrew [ see the installation instructions here.] ( http://brew.sh/ )
86+
87+ If you haven't already, be sure to enable Nike's tap:
88+
89+ ```
90+ brew tap nike-inc/nike && brew update
91+ ```
92+
93+ Then install bartlett with the following command:
94+
95+ ```
96+ brew install bartlett
97+ ```
98+
99+ #### Updating Bartlett with Homebrew
100+
101+ Recent versions of Homebrew periodically refresh package indexes, but if you do
102+ not see the latest version of Bartlett then running the following command
103+ will force a refresh:
104+
105+ ```
106+ brew update
107+ ```
108+
109+ Then, upgrade to the latest version
110+
111+ ```
112+ brew upgrade bartlett
113+ ```
81114
82115### from Source
83116
@@ -130,8 +163,9 @@ Available commands:
130163 info Get information on the given job
131164 build Trigger a build for the given job
132165 config Manage XML configurations for jobs
166+ artifact Download artifacts from jobs
133167
134- Copyright (c) Nike, Inc. 2016
168+ Copyright (c) Nike, Inc. 2016-present
135169```
136170
137171### Querying Existing Jobs
@@ -251,6 +285,42 @@ Enter password:
251285}
252286```
253287
288+ #### Deleting Existing Jobs
289+
290+ You can delete an existing job by passing the ` -d ` flag to a ` config ` command:
291+
292+ ```
293+ bartlett --username user --jenkins https://my-jenkins.com \
294+ config -d /path/to/job/to/delete
295+ Enter password:
296+ {
297+ "statusMessage": "OK",
298+ "statusCode": 200
299+ }
300+ ```
301+
302+ ### Downloading Artifacts for a Given Job
303+
304+ Artifacts can be downloaded for a given job by using the ` artifact ` sub-command.
305+ At this time only one artifcat may be downloaded at a time.
306+
307+ ```
308+ bartlett --username my-user --jenkins https://my-jenkins.com \
309+ artifact /path/to/job my-artifact-id
310+ Enter password:
311+ echo "foo" > foo.txt
312+ ```
313+
314+ Artifacts are currently sent to STDOUT, which works for simple files, but my not be
315+ desirable for larger files or binaries. It is recommended at this time to pipe
316+ artifact output directly to a file:
317+
318+ ```
319+ bartlett --username my-user --jenkins https://my-jenkins.com \
320+ artifact /path/to/job my-artifact-id > my-artifact-id.txt
321+ Enter password:
322+ ```
323+
254324### Configuring Profiles
255325
256326You may store configuration values for many different Jenkins instances. First
0 commit comments