From 333fdc65a11484f6c1690224f62b20d222a5fba8 Mon Sep 17 00:00:00 2001 From: David Caro Date: Fri, 21 Feb 2014 20:59:24 +0100 Subject: Add parallelization options * Only update_jobs uses the parallel features right now * --workers N - If set to 0, it will use parallel execution and use the number of cores in the machine as thread count - Any other value enables the parallel extensions and sets the number of concurrent threads to that value - Will use 1 by default Add some tests to make sure the parallel execution helpers work as expected. Change-Id: Ib0abd34ea7525f75fff4ff480287a6e589deba90 Signed-off-by: David Caro --- doc/source/execution.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/source/execution.rst b/doc/source/execution.rst index 326b56c3..6946cf48 100644 --- a/doc/source/execution.rst +++ b/doc/source/execution.rst @@ -160,6 +160,13 @@ arguments after the job definition path. To update Foo1 and Foo2 run:: jenkins-jobs update /path/to/defs Foo1 Foo2 +You can also enable the parallel execution of the program passing the workers +option with a value of 0, 2, or higher. Use 0 to run as many workers as cores +in the host that runs it, and 2 or higher to specify the number of workers to +use:: + + jenkins-jobs update --workers 0 /path/to/defs + Passing Multiple Paths ^^^^^^^^^^^^^^^^^^^^^^ It is possible to pass multiple paths to JJB using colons as a path separator on -- cgit