-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
None
Running sphinx-build with lftools causes errors with the presence of jenkins.ini and clouds.yaml files being present in ~/.config/.
The workaround is to rename the jjb.ini and clouds.yaml file without which the following error is seen.
[app] emitting event: 'env-updated'(<sphinx.environment.BuildEnvironment object at 0x7ff58c4982e8>,) [app] emitting event: 'build-finished'(SphinxWarning("Unexpected return code 1 from command 'lftools jenkins plugins --help'"),)Traceback (most recent call last): File "/home/abelur/git/lftools-new/.tox/docs/lib/python3.7/site-packages/sphinx/cmd/build.py", line 304, in build_main app.build(args.force_all, filenames) File "/home/abelur/git/lftools-new/.tox/docs/lib/python3.7/site-packages/sphinx/application.py", line 341, in build self.builder.build_update() File "/home/abelur/git/lftools-new/.tox/docs/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 347, in build_update len(to_build)) File "/home/abelur/git/lftools-new/.tox/docs/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 360, in build updated_docnames = set(self.read()) File "/usr/lib64/python3.7/contextlib.py", line 119, in __exit__ next(self.gen) File "/home/abelur/git/lftools-new/.tox/docs/lib/python3.7/site-packages/sphinx/util/logging.py", line 261, in pending_warnings memhandler.flushTo(logger) File "/home/abelur/git/lftools-new/.tox/docs/lib/python3.7/site-packages/sphinx/util/logging.py", line 224, in flushTo logger.handle(record) File "/usr/lib64/python3.7/logging/__init__.py", line 1529, in handle self.callHandlers(record) File "/usr/lib64/python3.7/logging/__init__.py", line 1591, in callHandlers hdlr.handle(record) File "/usr/lib64/python3.7/logging/__init__.py", line 901, in handle rv = self.filter(record) File "/usr/lib64/python3.7/logging/__init__.py", line 762, in filter result = f.filter(record) File "/home/abelur/git/lftools-new/.tox/docs/lib/python3.7/site-packages/sphinx/util/logging.py", line 412, in filter raise SphinxWarning(message) sphinx.errors.SphinxWarning: Unexpected return code 1 from command 'lftools jenkins plugins --help'Warning, treated as error: Unexpected return code 1 from command 'lftools jenkins plugins --help' ERROR: InvocationError for command '/home/abelur/git/lftools-new/.tox/docs/bin/sphinx-build -vv -W -b html -n -d /home/abelur/git/lftools-new/.tox/docs/tmp/doctrees ./docs/ /home/abelur/git/lftools-new/docs/_build/html' (exited with code 2) _____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________ ERROR: docs: commands failed