Merge lp://qastaging/~pfalcon/linaro-android-build-tools/cmdline-client into lp://qastaging/linaro-android-build-tools
Proposed by
Paul Sokolovsky
Status: | Merged |
---|---|
Merged at revision: | 671 |
Proposed branch: | lp://qastaging/~pfalcon/linaro-android-build-tools/cmdline-client |
Merge into: | lp://qastaging/linaro-android-build-tools |
Diff against target: |
271 lines (+261/-0) 2 files modified
utils/cmdline-client/README (+62/-0) utils/cmdline-client/android-build-client (+199/-0) |
To merge this branch: | bzr merge lp://qastaging/~pfalcon/linaro-android-build-tools/cmdline-client |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Sokolovsky | Approve | ||
Milo Casagrande (community) | Needs Fixing | ||
Review via email:
|
Description of the change
android-build command line client. This implements https:/
To post a comment you must log in.
Hey Paul,
following my comments, there's some typos that need fixing and a couple of suggestion/ thoughts.
Marking as fix needed, but once you cleaned the typos it should be ready to go.
+Basic android- build.linaro. org command-line client ======= ======= ======= ======= ======= ======= == build.linaro. org), as an alternative for
+======
+
+This tool provides proof-of-concept command-line client for Linaro Android
+Build Jenkins master (android-
+existing Web UI interface. One particular feature the command-line client
+has and Web UI lacks is support for creating completely private builds (such
+builds are not availabel via Web UI at all). At the same time, this tool is
+so far in the proof of concept stage and provides only basic job management
+actions (namely, create a job and schedule its build). If you find this tools
s/this tools/this tool
+useful, please share you comments and suggestion using this bugtracker:
s/you comments/your comments
+ /bugs.launchpad .net/linaro- android- infrastructure android- build.linaro. org/jenkins/ build-client tool. As it is written to depend only
+https:/
+
+to help its improvement and evolution.
+
+
+Quick start
+-----------
+
+1. You should have access to Jenkins at:
+
+http://
+
+(Generally available for Linaro Android team members).
+
+2. Download android-
s/to depend/it depends
+on Python standard library, an easy way to get it is to download seperate build-client /android- build.linaro. org/jenkins/ me/configure and clicking build-client authorize
+file via Launchpad BZR viewer:
+
+wget <fill in link once branch lands>
+chmod +x android-
+
+3. Look up your Jenkins API token by visiting
+https:/
+"Show API Token..." button.
+
+4. Run:
+
+./android-
+
+Enter you Jenkins username and API token. Note that this will cache these
s/you Jenkins/your Jenkins
+credentials in your home dir, so use this only on your personal well-protected /wiki.linaro. org/Platform/ Android/ LinaroAndroidBu ildService for more build-client create <job_name> <job_config_file>
+workstation. The alternative is to use --user switch and input API key
+interactively.
+
+5. To create a new job, prepare an Android job config (see
+https:/
+info) in a file. Run:
+
+./android-
+
+Note that job name should conform to Android Build Service naming
+converntions, see documentation link above for more info. To create a job
+private for particular group, pass --private=<group> switch to create command.
s/job private/private job
+ build-client build <job_name> build-client --help to see all options.
+6. To schedule a build, run:
+
+./android-
+
+
+Run ./android-
I tried it, but it does not show me all the available "commands", just the normale options.
It's early in the development stage, but it might be worth to take a look at how lava-tool is handling the commands definition.
There's a lot more code to write to achieve that, but it is a well structured pattern. Just food for thoughts, and something to keep in mind.
=== added file 'utils/ cmdline- client/ android- build-client' client/ android- build-client 1970-01-01 00:00:00 +0000 client/ android- build-client 2013-08-29 17:39:17 +0000
--- utils/cmdline-
+++ utils/cmdline-
@@ -0,0 +1,199 @@
+#!/usr/bin/env py...