{jenkins-plugin-info:pluginId=sectioned-view} |
This plugin provides a new view implementation that can be divided into sections. Each section can display different information about the selected jobs. An extension point is also provided to define new types of sections. |
Description
Using this plugin you can combine different types of sections to create a view that is tailored to your needs. Each section can contain different jobs and can have an optional header.
The sections currently implemented are:
You can add as many different sections as you want to create an overview of various projects.
For each section you can specify a width (Full, 1/2, 1/3, 2/3) and a position (Center, Left, Right).
Example:
After installing the plugin you'll see "Sectioned View" as an option when creating a new view.
When editing the view, you get a new area for creating and organising your sections. Each section can be further configured by expanding its "Advanced" area.
The View Listing Section type presents a listing of all your views (as an expandable tree if you're using the Nested View Plugin).
Just check the ones you want to show in the listing. Any checked entries will be given a box in the listing.
If you use nested views, then all sub-views of a checked view will be displayed as a hierarchical unordered list in the box (see the "Projects" listing in the example pic above).
New section types can be implemented by extending SectionedViewSection
as shown below.
public class MyCustomViewSection extends SectionedViewSection { @DataBoundConstructor public MyCustomViewSection(String name) { super(name); } @Extension public static final class DescriptorImpl extends SectionedViewSectionDescriptor { @Override public String getDisplayName() { return "My Custom Section"; } } } |
Then you can create a matching jelly include for displaying the jobs in this section.
<j:jelly xmlns...> <j:if test="${section.name.length() > 0}"> <h2>${section.name}</h2> </j:if> <j:if test="${empty(section.items)}"> <p>No jobs in this section.</p> </j:if> <j:forEach var="job" items="${section.items}"> <!-- Some custom logic for how to display each job --> </j:forEach> </j:jelly> |
In no particular order:
Update: first implementation released in version 1.2
Job Graphs Section - a section that presents a mini overview of all the trend reports for the selected jobs.
See the CHANGELOG in the source repository.