Skip to content
Permalink
Browse files

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

  • Loading branch information...
v1v committed Feb 25, 2017
1 parent a90bc61 commit cf799aa076f59571f5ff4e38c17bbbbd8f8dbd3c
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/main/java/org/jenkins/ci/plugins/jenkinslint/check/ArtifactChecker.java
@@ -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;
@@ -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);

0 comments on commit cf799aa

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