This plugin adds a new link "XPath Configuration Viewer" to the Jenkins Managagement page. It provides a simple and easy way to check job configurations having a huge number of jobs.
Do you habe more than 50 jenkins jobs to administrate? Do you use several plugins that have all individual entries in the job's config.xml files? Than this plugin can help you a lot.
It takes the idea of the configuration slicing plugin using a more generic approach. XPath expressions are used to filter all jobs, that match to it. The resulting table shows all variations of the XPath-selected XML-snippets in the left column. The right column shows for each XML-snippet all jobs having this exact XML-snippet.
The XPath Configuration Viewer plugin can only be used by users with adminstrator rights!
The plugin integrates in the list of management links on the .../manage page.
Clicking on the link leads to the following page:
It shows a table with two columns. The left column for the XML-snippets and the right column for the jobs having this snippet.
Clicking on the "Add a new XPath"-link opens this dialog:
It has 4 fields:
On saving the new XPath configuration, it is stored into an XML file in the jenkinshome directory using the org.jenkins-ci.lib::config-provider-model::1.1.
The XPath Configuration Viewer shows something like the following:
All configured XPath expressions are listed in a collapsed table. The results of each expression can be opened by clicking on the plus sign on the right side in the table row. The other two signs are for editing and deleting of the row.
In the title row, all configured XPath expressions are listed by their names. These are ancor links to jump directly down the page to the corresponding block. With the two links right of this list it is possible to open and close all rows at once.
Jobs not matching to an XPath expression are listed as last row of a configuration block.
Using the link behind the job names leads to the corresponding job configuration page.
Skip to end of metadata Go to start of metadata