diff options
author | Anil Belur <askb23@gmail.com> | 2018-09-10 11:01:44 +0530 |
---|---|---|
committer | Anil Belur <askb23@gmail.com> | 2018-09-19 02:24:05 +0530 |
commit | 9399b1f9868ce04d8c95cdd271d102947534411a (patch) | |
tree | c16c5571ecc1c2fcf30657f6265e0c0d355d2820 /doc/source | |
parent | 8773289f17b26cb919bcc47ed35d234923680daa (diff) | |
download | python-jenkins-job-builder-9399b1f9868ce04d8c95cdd271d102947534411a.tar.gz python-jenkins-job-builder-9399b1f9868ce04d8c95cdd271d102947534411a.tar.xz python-jenkins-job-builder-9399b1f9868ce04d8c95cdd271d102947534411a.zip |
Add config options --jobs-only and --views-only
Add options --jobs-only and --views-only to job_builder
section in config file.
By default JJB updates both jobs and views. Some cases
non-admin users are not allowed to update views on Jenkins
which requires explicity using -j flag.
Allow users to set a config option 'update=jobs|views|all'
in the 'job_builder' section implicitly use --jobs-only or
--views-only and control these flags from the config file.
Note: CLI options takes precedence over the config file.
Change-Id: I2a94e5a2d671ccbfc505de2f19b578ecfef9e9d7
Co-Authored-By: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Anil Belur <askb23@gmail.com>
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/execution.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/source/execution.rst b/doc/source/execution.rst index 7434be72..eb292e11 100644 --- a/doc/source/execution.rst +++ b/doc/source/execution.rst @@ -66,6 +66,11 @@ job_builder section they will be accessible in `qux.yml` but not in `bar.yml`. They will also be accessible in `mydir/bar.yml` and `mydir/qux.yml`. False by default. +**update** + (Optional) If set, allows the user to specify if only "jobs" or "views" + (or "all") are updated. Users can override the setting here by passing + ``--jobs-only`` or ``--views-only`` CLI options. + (Valid options: jobs, views, all) jenkins section ^^^^^^^^^^^^^^^ |