Skip to content
Permalink
Browse files
[JENKINS-42310] JobDescription Lint defect support Maven and Matrix p…
…rojects
  • Loading branch information
v1v committed Feb 24, 2017
1 parent bb790ad commit 13f711c3349d3cea573e15e5522552183d74a0e2
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/org/jenkins/ci/plugins/jenkinslint/check/JobDescriptionChecker.java
@@ -1,7 +1,7 @@
package org.jenkins.ci.plugins.jenkinslint.check;

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

/**
@@ -16,9 +16,9 @@ public JobDescriptionChecker() {
}

public boolean executeCheck(Item item) {
if (item instanceof hudson.model.Project) {
return (((Project) item).getDescription() == null
|| ((Project) item).getDescription().length() == 0);
if (item instanceof AbstractItem) {
return (((AbstractItem) item).getDescription() == null
|| ((AbstractItem) item).getDescription().length() == 0);
}
return false;
}

0 comments on commit 13f711c

Please sign in to comment.