Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42268

Enable Knowledge Database analyser

    Details

    • Similar Issues:

      Description

      When the plugin knowledge database is installed is a good practise to force the analyser and therefore share build defects and detect them proactively and in case we don't want to use it then explain the reason in the job description by using the control comment
      Severity: Low

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Victor Martinez
          Path:
          README.md
          src/main/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintAction.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintGlobalConfiguration.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/JobLintAction.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/SlaveLintAction.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/ArtifactChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/BFAChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/CleanupWorkspaceChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefSubmoduleChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GitShallowChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GradleWrapperChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GroovySystemExitChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/HardcodedScriptChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JavadocChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobAssignedLabelChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobDescriptionChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobLogRotatorChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobNameChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/MasterLabelChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/MavenJobTypeChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/MultibranchJobTypeChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/NullSCMChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/PollingSCMTriggerChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveDescriptionChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveLabelChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveVersionChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/TimeoutChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/TimerTriggerChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/WindowsSlaveLaunchChecker.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/AbstractAction.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/AbstractCheck.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/AbstractSlaveCheck.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/InterfaceCheck.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/InterfaceSlaveCheck.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/Job.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/Lint.java
          src/main/java/org/jenkins/ci/plugins/jenkinslint/model/Slave.java
          src/main/resources/org/jenkins/ci/plugins/jenkinslint/JenkinsLintAction/index.jelly
          src/main/resources/org/jenkins/ci/plugins/jenkinslint/JenkinsLintGlobalConfiguration/config.jelly
          src/main/resources/org/jenkins/ci/plugins/jenkinslint/JobLintAction/index.jelly
          src/main/resources/org/jenkins/ci/plugins/jenkinslint/SlaveLintAction/index.jelly
          src/test/java/org/jenkins/ci/plugins/jenkinslint/AbstractTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintActionTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintGlobalConfigurationTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/JobLintActionTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/SlaveLintActionTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/AbstractCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/ArtifactCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/BFACheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/CleanupWorkspaceCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefSubmoduleCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GitShallowCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GradleWrapperCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GroovySystemExitCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/HardcodedScriptCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JavadocCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobAssignedLabelCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobDescriptionCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobLogRotatorCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobNameCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/MasterLabelCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/MavenJobTypeCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/MultibranchJobTypeCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/NullSCMCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/PollingSCMTriggerCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveDescriptionCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveLabelCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveVersionCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/TimeoutCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/TimerTriggerCheckerTestCase.java
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/WindowsSlaveLaunchCheckerTestCase.java
          http://jenkins-ci.org/commit/jenkinslint-plugin/8be91308e606ed60310171aee1634980d73400a1
          Log:
          JENKINS-45882 [JENKINS-41528] [JENKINS-42268] Jenkins Lint Global Configuration and new Checkers (#21)

          • Initial approach to use GlobalConfiguration
          • Added Lint global settings to enable/disable it
          • Disabling and Ignoring are now different status.
          • Fixed README.md
          • Added remaining checkers
          • Some minor bits and pieces to only show defects when they are in the right state
          • Fixed Tests to use the enabled flag
          • Enabled JobAction managed by GlobalSettings although the system property will be deprecated shortly
          • Added Threshold option in the Global Settings
          • Added TestCases for the new hardcoded threshold argument/variable
          • Added FormValidation Test Case for the Threshold value
          • SpeedUp TestCases usng the ClassRule pattern
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Victor Martinez Path: README.md src/main/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintAction.java src/main/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintGlobalConfiguration.java src/main/java/org/jenkins/ci/plugins/jenkinslint/JobLintAction.java src/main/java/org/jenkins/ci/plugins/jenkinslint/SlaveLintAction.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/ArtifactChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/BFAChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/CleanupWorkspaceChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefSubmoduleChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GitShallowChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GradleWrapperChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/GroovySystemExitChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/HardcodedScriptChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JavadocChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobAssignedLabelChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobDescriptionChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobLogRotatorChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobNameChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/MasterLabelChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/MavenJobTypeChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/MultibranchJobTypeChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/NullSCMChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/PollingSCMTriggerChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveDescriptionChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveLabelChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveVersionChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/TimeoutChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/TimerTriggerChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/check/WindowsSlaveLaunchChecker.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/AbstractAction.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/AbstractCheck.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/AbstractSlaveCheck.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/InterfaceCheck.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/InterfaceSlaveCheck.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/Job.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/Lint.java src/main/java/org/jenkins/ci/plugins/jenkinslint/model/Slave.java src/main/resources/org/jenkins/ci/plugins/jenkinslint/JenkinsLintAction/index.jelly src/main/resources/org/jenkins/ci/plugins/jenkinslint/JenkinsLintGlobalConfiguration/config.jelly src/main/resources/org/jenkins/ci/plugins/jenkinslint/JobLintAction/index.jelly src/main/resources/org/jenkins/ci/plugins/jenkinslint/SlaveLintAction/index.jelly src/test/java/org/jenkins/ci/plugins/jenkinslint/AbstractTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintActionTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/JenkinsLintGlobalConfigurationTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/JobLintActionTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/SlaveLintActionTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/AbstractCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/ArtifactCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/BFACheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/CleanupWorkspaceCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GitRefSubmoduleCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GitShallowCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GradleWrapperCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/GroovySystemExitCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/HardcodedScriptCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JavadocCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobAssignedLabelCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobDescriptionCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobLogRotatorCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/JobNameCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/MasterLabelCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/MavenJobTypeCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/MultibranchJobTypeCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/NullSCMCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/PollingSCMTriggerCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveDescriptionCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveLabelCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/SlaveVersionCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/TimeoutCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/TimerTriggerCheckerTestCase.java src/test/java/org/jenkins/ci/plugins/jenkinslint/check/WindowsSlaveLaunchCheckerTestCase.java http://jenkins-ci.org/commit/jenkinslint-plugin/8be91308e606ed60310171aee1634980d73400a1 Log: JENKINS-45882 [JENKINS-41528] [JENKINS-42268] Jenkins Lint Global Configuration and new Checkers (#21) Initial approach to use GlobalConfiguration Added Lint global settings to enable/disable it Disabling and Ignoring are now different status. Fixed README.md Added remaining checkers Saving global configuration based on the https://wiki.jenkins.io/display/JENKINS/Manage+global+settings+and+tools+installations Some minor bits and pieces to only show defects when they are in the right state Fixed Tests to use the enabled flag Enabled JobAction managed by GlobalSettings although the system property will be deprecated shortly Added Threshold option in the Global Settings Added TestCases for the new hardcoded threshold argument/variable Added FormValidation Test Case for the Threshold value SpeedUp TestCases usng the ClassRule pattern
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Victor Martinez
          Path:
          pom.xml
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityCheckerTestCase.java
          http://jenkins-ci.org/commit/jenkinslint-plugin/266f27b246ff54162655095c6b3fa4b0c4ac37a0
          Log:
          JENKINS-42268 Added CyclomaticComplexity test cases (WiP)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Victor Martinez Path: pom.xml src/test/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityCheckerTestCase.java http://jenkins-ci.org/commit/jenkinslint-plugin/266f27b246ff54162655095c6b3fa4b0c4ac37a0 Log: JENKINS-42268 Added CyclomaticComplexity test cases (WiP)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Victor Martinez
          Path:
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityChecker.java
          src/main/resources/org/jenkins/ci/plugins/jenkinslint/check/Messages.properties
          http://jenkins-ci.org/commit/jenkinslint-plugin/1c66f0c0d3329cf80591d3bbe1a81b4ba03b0950
          Log:
          JENKINS-42268 CyclomaticComplexity lint defect initial approach

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Victor Martinez Path: src/main/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityChecker.java src/main/resources/org/jenkins/ci/plugins/jenkinslint/check/Messages.properties http://jenkins-ci.org/commit/jenkinslint-plugin/1c66f0c0d3329cf80591d3bbe1a81b4ba03b0950 Log: JENKINS-42268 CyclomaticComplexity lint defect initial approach
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Victor Martinez
          Path:
          pom.xml
          src/test/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityCheckerTestCase.java
          http://jenkins-ci.org/commit/jenkinslint-plugin/96ed1451b6a5c02907c388b9bceb4dbd8368282b
          Log:
          JENKINS-42268 Added CyclomaticComplexity test cases (WiP)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Victor Martinez Path: pom.xml src/test/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityCheckerTestCase.java http://jenkins-ci.org/commit/jenkinslint-plugin/96ed1451b6a5c02907c388b9bceb4dbd8368282b Log: JENKINS-42268 Added CyclomaticComplexity test cases (WiP)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Victor Martinez
          Path:
          src/main/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityChecker.java
          src/main/resources/org/jenkins/ci/plugins/jenkinslint/check/Messages.properties
          http://jenkins-ci.org/commit/jenkinslint-plugin/6339cc70517b300adb619dfff1a711183a00c794
          Log:
          JENKINS-42268 CyclomaticComplexity lint defect initial approach

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Victor Martinez Path: src/main/java/org/jenkins/ci/plugins/jenkinslint/check/CyclomaticComplexityChecker.java src/main/resources/org/jenkins/ci/plugins/jenkinslint/check/Messages.properties http://jenkins-ci.org/commit/jenkinslint-plugin/6339cc70517b300adb619dfff1a711183a00c794 Log: JENKINS-42268 CyclomaticComplexity lint defect initial approach

            People

            • Assignee:
              v2v Victor Martinez
              Reporter:
              v2v Victor Martinez
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: