Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can find it under <jenkins_url>/jenkinslint or reach it via links in the sidepanel of the main page. You don't need to do anything else, just click on the Jenkins Lint link and those Lint checkers will be shown.



Image Removed 

Image RemovedImage Added

Image Added

Features

List of available Job checks:

...

  • Configure Checks (change severity)
  • Load checks dynamically via Jenkins.
  • Load checks dynamically via Reflection. 
  • Define some kind of programmatically scripts.
  • Check: Cyclomatic complexity check
  • Enable/Disable whether to lint disabled Jobs

Controlling checks:

You can ignore a particular check  in a specific job, by adding a trailing linttrailing lint:ignore:<check name> comment name> comment to the job description.

You can ignore a check globally, by deselecting it in the system configuration: "Manage Jenkins" / "Configure System" in the "Advanced" section below "Jenkins Lint".

Disabling the healthy floating box in the Job Summary Page

...

Based on the Features controlled by system properties, you can disable the healthy floating box in the Job Summary Page

Property

Default

Version

Notes

org.jenkins.ci.plugins.jenkinslint.JobLintAction.disabled

false

0.9.0

Deprecated since 0.10.0

. Removed since 0.12.0.

 


By default you will see the below view:

...

  • <jenkins/hudson_url>/jenkinslint/api/json?depth=2&pretty=true
  • <jenkins/hudson_url>/jenkinslint/api/xml?depth=2

...

  • <jenkins/hudson_url>/job/<your_job>/jenkinslint/api/json?depth=2&pretty=true
  • <jenkins/hudson_url>/job/<your_job>/jenkinslint/api/xml?depth=2
  • <jenkins/hudson_url>/computer/<agent>/jenkinslint//api/json?depth=2&pretty=true
  • <jenkins/hudson_url>/computer/<agent>/jenkinslint//api/xml?depth=2

Workaround

 

Warning

There is already a known issue in the initial version 0.1.0Workspace Cleanup Plugin is a required dependency otherwise JenkinsLint will fail when analyzing those Jobs

...

  • 1.607 or newer if Jenkins pipelines are installed
  • 1.580 or newer is required if jenkins pipelines are not installed
Info

It might work with previous versions.

NOTE: Jenkins version is required when testing those checkers using the mvn test command. This plugin uses java reflection to get rid of those plugins/jenkins version dependencies although it's required in the test phase when developing it to verify/test those checkers.

Open Issues

Jira Issues
renderModedynamic
width850px
anonymoustrue
urlhttp://issues.jenkins-ci.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+JENKINS+AND+status+in+%28Open%2C+%22In+Progress%22%2C+Reopened%29+AND+component+%3D+jenkinslint-plugin+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC
height300px

...

(plus) Check: Cyclomatic complexity check (issue #42269)

(plus)  Enable/Disable whether to lint disabled jobs from Global Settings

Version 0.13.0 (August 24, 2017)

...