Skip to content
Permalink
Browse files

[JENKINS-42310] JobAssignedLabel Lint defect support Maven and Matrix…

… projects
  • Loading branch information...
v1v committed Feb 24, 2017
1 parent 13f711c commit 71d0f8045ef14ade2a66cff50a22858c1df3b017
@@ -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,6 +16,7 @@ public JobAssignedLabelChecker() {
}

public boolean executeCheck(Item item) {
return item instanceof Project && (((Project) item).getAssignedLabelString() == null || ((Project) item).getAssignedLabelString().length() == 0);
return item instanceof AbstractProject && (((AbstractProject) item).getAssignedLabelString() == null ||
((AbstractProject) item).getAssignedLabelString().length() == 0);
}
}

0 comments on commit 71d0f80

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