Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-42310] Artifact Lint defect support Maven and Matrix projects
  • Loading branch information
v1v committed Feb 25, 2017
1 parent a90bc61 commit cf799aa
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -2,7 +2,7 @@

import hudson.model.Descriptor;
import hudson.model.Item;
import hudson.model.Project;
import hudson.model.AbstractProject;
import hudson.tasks.ArtifactArchiver;
import hudson.tasks.Publisher;
import hudson.util.DescribableList;
Expand All @@ -24,9 +24,8 @@ public ArtifactChecker() {
public boolean executeCheck(Item item) {
LOG.log(Level.FINE, "executeCheck " + item);

if (item instanceof Project) {
Project project = (Project) item;
DescribableList<Publisher, Descriptor<Publisher>> publishersList = project.getPublishersList();
if (item instanceof AbstractProject) {
DescribableList<Publisher, Descriptor<Publisher>> publishersList = ((AbstractProject)item).getPublishersList();
for (Publisher publisher : publishersList) {
if (publisher instanceof ArtifactArchiver) {
LOG.log(Level.FINEST, "ArtifactChecker " + publisher);
Expand Down

0 comments on commit cf799aa

Please sign in to comment.