Merge "cmd.py: tweak plugin information querying logic"
This commit is contained in:
commit
4408bca1ed
@ -76,10 +76,10 @@ jenkins section
|
||||
By default this is set to the system configured socket timeout.
|
||||
|
||||
**query_plugins_info**
|
||||
Whether to query the Jenkins instance for plugin info when a configuration
|
||||
file is provided. If a configuration file is not provided `jenkins-jobs` will
|
||||
ignore this setting and skip querying for plugin information. True by
|
||||
default.
|
||||
Whether to query the Jenkins instance for plugin info. If no configuration
|
||||
files are found (either in the default paths or given through the
|
||||
command-line), `jenkins-jobs` will skip querying for plugin information. True
|
||||
by default.
|
||||
|
||||
|
||||
hipchat section
|
||||
|
@ -187,6 +187,7 @@ def setup_config_settings(options):
|
||||
# Load default config always
|
||||
config.readfp(StringIO(DEFAULT_CONF))
|
||||
if os.path.isfile(conf):
|
||||
options.conf = conf # remember file we read from
|
||||
logger.debug("Reading config from {0}".format(conf))
|
||||
conffp = io.open(conf, 'r', encoding='utf-8')
|
||||
config.readfp(conffp)
|
||||
|
Loading…
Reference in New Issue
Block a user