Anonymous avatar Anonymous committed 11f3669

Enhance scriptable image/release builds (RBLD-220)

Comments (0)

Files changed (2)

+Changes in @NEW@:
+  o New Features:
+    * Adjusted the build-url command to match an API change in rBuild
+      to accommodate printing URLs usefully for build automation
+      with rBuild (RBLD-220)
+
 Changes in 1.0:
-  o General Availability
+  o General Availability:
     * rbuilder-client is now released as generally available
       software with a stable API.  See the README file for more
       information.
 
-
 Changes in 0.1:
-  o Initial Version
+  o Initial Version:
     * rbuilder command line split out from rbuild to put it under
       separate management.

rbclient/internal/buildcmds.py

 
         buildId = int(args[0])
 
-        handle.facade.rbuilder.getBuildFiles(buildId)
+        for build in handle.facade.rbuilder.getBuildFiles(buildId):
+            if 'downloadUrl' in build:
+                print build['downloadUrl']
+            if 'torrentUrl' in build:
+                print build['torrentUrl']
 
         return 0
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.