Skip to content
Permalink
Browse files

[JENKINS-42310] NullSCM Lint defect support Maven and Matrix projects

  • Loading branch information...
v1v committed Feb 25, 2017
1 parent 41f4345 commit 6770f331bf72227e78f43435a4ad07aa076f7e38
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/jenkins/ci/plugins/jenkinslint/check/NullSCMChecker.java
@@ -1,7 +1,7 @@
package org.jenkins.ci.plugins.jenkinslint.check;

import hudson.model.Item;
import hudson.model.Project;
import hudson.model.AbstractProject;
import org.jenkins.ci.plugins.jenkinslint.model.AbstractCheck;

/**
@@ -16,8 +16,8 @@ public NullSCMChecker() {
}

public boolean executeCheck(Item item) {
if (item instanceof Project) {
return (((Project) item).getScm() instanceof hudson.scm.NullSCM);
if (item instanceof AbstractProject) {
return (((AbstractProject) item).getScm() instanceof hudson.scm.NullSCM);
}
return false;
}

0 comments on commit 6770f33

Please sign in to comment.
You can’t perform that action at this time.