--- /dev/null
+Understaning Jenkins builds
+===========================
+
+This page documents what different Jenkins builds actually run from the
+|Gromacs| source tree. The purpose is two-fold:
+
+* Provide information on how to interpret Jenkins failures and how to run the
+ same tasks locally to diagnose issues.
+* Provide information on what changes in the build system (or other parts of
+ the repository) need special care to not break Jenkins builds.
+
+.. TODO: Add a link to a wiki page about general Jenkins documentation, once
+ there is more of that.
+
+cppcheck build
+--------------
+
+This build runs the :command:`cppcheck` static analysis tool. Any issues found
+mark the build unstable, and can be browsed in Jenkins.
+
+It runs :command:`cmake` to generate the build system, and then builds the
+``cppcheck`` target. Nothing is compiled by this target, it only runs
+:command:`cppcheck` for the designated source files. The CMake configuration
+options do not affect the set of files checked, but they do affect the checked
+code through :file:`config.h` and such.
+
+Documentation build
+-------------------
+
+This build builds various types of documentation:
+
+* PDF reference manual using LaTeX
+* Doxygen documentation extracted from the source code
+* Set of HTML pages containing an installation guide, a user guide, and a
+ developer guide, as well as links to the above. This set of HTML pages can
+ be browsed from Jenkins.
+* Man pages
+* INSTALL text file
+
+The last three require building the :file:`gmx` binary and running it, so
+compilation failures will also show in this build.
+All log files that contain warnings are archived as artifacts in the build, and
+presence of any warnings marks the build unstable. Brief description of which
+part failed is reported back to Gerrit.
+
+Additionally, the build runs some source code checks that rely on the Doxygen
+documentation. See the description of the ``check-source`` target in
+:doc:`gmxtree`.
+
+:doc:`doxygen` provides general guidelines for Doxygen usage, which can be
+helpful in understanding and solving Doxygen warnings and some of the
+``check-source`` issues.
+:doc:`includestyle` provides guidelines for #include order and style, which is
+another part of ``check-source`` checks.
+
+Technically, the documentation build runs :file:`admin/build-docs.sh`.
+See that file for details of what it exactly builds and how. Most changes in the
+documentation build system will require changes in this script, but Jenkins
+configuration should be more static.
+
+uncrustify build
+----------------
+
+This build checks the source code for formatting such as consistent indentation
+and use of braces, as well as for copyright headers. See :doc:`formatting` for
+the guidelines that are enforced.
+
+Technically, the build simply runs :file:`admin/uncrustify.sh` as ::
+
+ admin/uncrustify.sh check --rev=HEAD^
+
+to check the formatting in the changes for the commit.
+If the return value is non-zero (i.e., any changes would be required), the
+build is marked unstable.
+Currently, only the console log of the build shows what actually was the issue.
+See :doc:`uncrustify` for more details on the script and uncrustify.
+
+.. TODO: Provide links to the build system page, once there are on the git
+ commit chain...
+
+.. TODO: Document all the rest.
:maxdepth: 2
doxygen
+ jenkins
gmxtree
uncrustify
testutils
+.. TODO: Consider what is the most reasonable structure; currently, this list
+ here does not make much sense in the overall organization and creates a
+ confusing TOC for the developer guide.
+
.. TODO: Add details for most of the tools, either in the form of links to wiki,
or to a separate page that explains more details.
All changes pushed to Gerrit are automatically compiled and otherwise
checked on various platforms using a continuous integration system at
http://jenkins.gromacs.org.
+ :doc:`jenkins` documents how Jenkins interacts with the build system,
+ providing information on how to replicate the builds Jenkins does (e.g., to
+ diagnose issues).
Redmine
Bugs and issues, as well as some random features and discussions,