Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/v1v/jenkinslint-plugin
Checks Jenkins Jobs for practices and behaviour that could potentially be improved.
https://github.com/v1v/jenkinslint-plugin
best-practices java jenkins jenkinslint-plugin lint
Last synced: about 2 months ago
JSON representation
Checks Jenkins Jobs for practices and behaviour that could potentially be improved.
- Host: GitHub
- URL: https://github.com/v1v/jenkinslint-plugin
- Owner: v1v
- License: mit
- Created: 2015-07-05T11:32:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T03:14:52.000Z (about 1 year ago)
- Last Synced: 2024-10-28T21:21:23.664Z (3 months ago)
- Topics: best-practices, java, jenkins, jenkinslint-plugin, lint
- Language: Java
- Homepage: https://wiki.jenkins.io/display/JENKINS/JenkinsLint%20Plugin
- Size: 155 KB
- Stars: 2
- Watchers: 4
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
JenkinsLint Plugin
==================This plugin has mainly two goals:
- To make it easier to detect issues in your Jenkins configuration that will cause Jenkins to blow up when you attempt to run those jobs.
- To encourage discussion within the Jenkins community on the more subjective stuff. Having a set of checks to base discussion on helps drive out what we as a community think is good style.See [JenkinsLint Plugin](https://wiki.jenkins-ci.org/display/JENKINS/JenkinsLint+Plugin) for more information.
[![Build Status](https://jenkins.ci.cloudbees.com/buildStatus/icon?job=plugins/jenkinslint-plugin)](https://jenkins.ci.cloudbees.com/job/plugins/job/jenkinslint-plugin/)
Motivation
==========Jenkins is an awesome Automation System, and there are a bunch of people using it in different ways, for instances:
developers, testers, automation, build engineers, release engineers, scrum master, product owner and so on. Unfortunately, as
the number of jobs grows, maintaining them becomes tedious, and the paradigm of no using a predefined set of best practices
falls apart.The jenkinslint plugin attempts to solve this problem by allowing jobs to be evaluated with some predefined
best practices. The goal is for your team to be able to define those best practices to be related to their project.Manually reviewing those jobs wouldn't be too hard, but doing the same thing all over again for every new job or for
a hundred other projects is where it gets difficult and tedious. This provides a much more powerful way of analyzing them.TODO
=====================- Load checks dynamically via Reflection
- Show graphs
- Configure Checks (enabled, disabled, change severity)
- Load checks dynamically.
- Jobs action to show those Jenkins lints.
- System.exit in system admin groovy scripts (prebuilder, builders, publishers and parameters)
- Support pipelineList available Checks
=====================* Artifact Publisher check
* CleanUp Workspace check
* Git Shallow clone check
* Javadoc Publisher check
* Job Assigned Label check
* Master Assigned Label check
* Job Description check
* Job Log Rotator check
* Job Name check
* Maven Job Type check
* Null SCM check
* Polling SCM Trigger check
* Multibranch Job Type check
* Hardcoded Script check
* Gradle Wrapper check
* Build timeout check
* Slave description check
* Slave label check
* Slave version check
* Windows slave launch checkDevelopment
===========Start the local Jenkins instance:
mvn hpi:run
How to install
--------------Run
mvn clean package
to create the plugin .hpi file.
To install:
1. copy the resulting ./target/jenkinslint.hpi file to the $JENKINS_HOME/plugins directory. Don't forget to restart Jenkins afterwards.
2. or use the plugin management console (http://example.com:8080/pluginManager/advanced) to upload the hpi file. You have to restart Jenkins in order to find the plugin in the installed plugins list.
Plugin releases
---------------mvn release:prepare release:perform
Authors
=======Victor Martinez
References
==========1. [Linters list](https://github.com/mcandre/linters)
2. [Jenkins Performance Hints](http://soldering-iron.blogspot.com.es/2014/01/jenkins-performance-hints.html)License
=======The MIT License
Copyright (c) 2015, Victor Martinez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.