Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenkinsci/compact-columns-plugin
Jenkins compact-columns plugin
https://github.com/jenkinsci/compact-columns-plugin
java jenkins
Last synced: 2 months ago
JSON representation
Jenkins compact-columns plugin
- Host: GitHub
- URL: https://github.com/jenkinsci/compact-columns-plugin
- Owner: jenkinsci
- License: mit
- Created: 2010-12-13T05:28:52.000Z (about 14 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T20:56:34.000Z (4 months ago)
- Last Synced: 2024-11-30T19:38:18.248Z (2 months ago)
- Topics: java, jenkins
- Language: Java
- Homepage: https://plugins.jenkins.io/compact-columns/
- Size: 292 KB
- Stars: 5
- Watchers: 98
- Forks: 12
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compact Columns Plugin
[![Jenkins Plugin](https://img.shields.io/jenkins/plugin/v/compact-columns.svg)](https://plugins.jenkins.io/compact-columns)
[![GitHub release](https://img.shields.io/github/release/jenkinsci/compact-columns-plugin.svg?label=changelog)](https://github.com/jenkinsci/compact-columns-plugin/releases/latest)
[![Jenkins Plugin Installs](https://img.shields.io/jenkins/plugin/i/compact-columns.svg?color=blue)](https://plugins.jenkins.io/compact-columns)
[![Build Status](https://ci.jenkins.io/buildStatus/icon?job=Plugins%2Fcompact-columns-plugin%2Fmain)](https://ci.jenkins.io/job/Plugins/job/compact-columns-plugin/job/main/)
[![GitHub license](https://img.shields.io/github/license/jenkinsci/compact-columns-plugin.svg)](https://github.com/jenkinsci/compact-columns-plugin/blob/master/LICENSE)
[![Maintenance](https://img.shields.io/maintenance/yes/2024.svg)]()More compact columns for showing last success and failure.
Easier to understand, and takes less room in your view.## What are the "Job Name" columns?
- **Job Name** -- Adds the job description as a tooltip
- **Job Name w/ Status Color** -- also Colors the job name according to the
last build status
![](docs/img/job-name.png)## What are the "Latest Statuses" columns?
These columns take the "Last Success" and "Last Failure" columns and combine
them into one easier to understand, and real-estate friendly column. You can
click on the status links to go to that build, and can hover over the link to
see additional information in the tool-tip.![](docs/img/compact.png)
### Some examples of the "Last Statuses" columns
Based on the configuration options you choose, you can get columns like these
examples.![](docs/img/last-statuses-example-1.png)
![](docs/img/last-statuses-example-2.png)
![](docs/img/last-statuses-example-3.png)
![](docs/img/last-statuses-example-4.png)## Why?
Even in this small screen-shot you can see how busy the "Last Success" and
"Last Failure" columns are. Quite frankly, it's hard to really get the
information you need "at a glance" like you should.![](docs/img/all.png)
The problem is compounded if you have many jobs and scroll down and lose the
column headers. You can't remember which column is for which information.![](docs/img/all-out-of-context.png)
This becomes even more useful when you are using some of the plugins that
provide additional columns (e.g. [Maven Info
Plugin](https://plugins.jenkins.io/maven-info/)) or alternate view layouts
(e.g. [Sectioned View Plugin](https://plugins.jenkins.io/sectioned-view/)).## How do I use it?
Follow these steps
1. If the only view you have is the "All" view, and you want to edit that view
see [Editing or Replacing the All View](docs/the-all-view.md). If you would
like to add another view instead, do that.
2. Once you have a view you want to edit, see [Changing the Columns of a
View](docs/changing-columns.md)
3. When changing columns, look for the "Compact Column" columns. There
are several columns to choose from:
1. **Compact Column: Job Name w/ Options** -- Adds the job
description, plus colors the job name according to the last
status. Also contains the following options
1. Color the Job Name according to the last build's status
2. Add the job's description to the tool-tip
3. Add the job's last status summary to the tool-tip - same
look and feel as the status column tool-tips
4. Enable/disable colorblind support
2. **Compact Column: All Statuses w/ Options** -- This column
always shows you the last build for each of the statuses
fail/stable/unstable. Also contains the following options
1. Show only the last status
2. Hide statuses that are older than a certain number of days
3. Enable/disable colorblind support
4. Choose either
1. Days ago - like "4 days" or "17 mins"
2. Date/time
3. **Compact Column: Unstable + Stable** -- This column prefers to
show you just the latest un/stable builds, but will also show
you if the last build failed
4. **Compact Column: Stable + Failed** -- This column prefers to
show you just the latest stable/fail builds, but will also show
you if the last build was unstable
5. **Compact Column: Job Name** -- Adds the job description as a
tool tip. (simpler version of Job Name w/ Options - kept only
for backwards compatibility)This screenshot shows what this configuration looks like. It is a little
different than most columns because you can configure the details per-view. For
example, you could have one view that shows the job name with color turned on,
and another view that has the color turned off.
![](docs/img/configuration.png)## Contributing
If you want to contribute to this plugin, you probably will need a Jenkins
plugin developement environment. This basically means a current version of Java
(Java 17 should probably be okay for now) and [Apache Maven]. See the
[Jenkins Plugin Tutorial] for details.If you have the proper environment, typing:
$ mvn verify
should create a plugin as `target/*.hpi`, which you can install in your Jenkins
instance. Running$ mvn hpi:run -Djenkins.version=2.452.2
allows you to spin up a test Jenkins instance on [localhost] to test your
local changes before commiting.[Apache Maven]: https://maven.apache.org/
[Jenkins Plugin Tutorial]: https://jenkins.io/doc/developer/tutorial/prepare/
[localhost]: http://localhost:8080/jenkins/### Code Style
This plugin is using [Google Java Code Style], please try to adhere to that
style whenever adding new files or making changes to existing files. The style
is enforced using the [spotless] plugin, if the build fails because you were
using the "wrong" style, you can fix it by running:$ mvn spotless:apply
to reformat Java code in the proper style.
[Google Java Code Style]: https://google.github.io/styleguide/javaguide.html
[spotless]: https://github.com/diffplug/spotless## Changelog
* See [GitHub Releases](https://github.com/jenkinsci/compact-columns-plugin/releases) for the recent versions
* See the [old changelog](docs/CHANGELOG.old.md) for versions 1.10 and older