Add views and jobs only options for update

JJB 2.0 update does not allow updating only views
or jobs which would be useful, which is implemented with
delete and delete-all. This patch add's thoses flags
for the update option.

Change-Id: I3712c8552ea83a4c29c05461894c4464aa41230f
Signed-off-by: Anil Belur <askb23@gmail.com>
This commit is contained in:
Anil Belur
2018-01-25 07:46:40 +10:00
parent 05e1d8eea1
commit ad61af1670
2 changed files with 38 additions and 7 deletions

View File

@@ -190,6 +190,13 @@ use::
jenkins-jobs update --workers 0 /path/to/defs
To update only views or only jobs, simply add the argument
--views-only or --jobs-only after the command::
jenkins-jobs update --views-only Foo-view
jenkins-jobs update --jobs-only Foo-job
Passing Multiple Paths
^^^^^^^^^^^^^^^^^^^^^^
It is possible to pass multiple paths to JJB using colons as a path separator on