Skip to content
Permalink
Browse files

[FIXED JENKINS-12692] Choose the Artifact Archiver as the default pub…

…lisher to play (a little) nicer with Warnings
  • Loading branch information
bap2000 committed Feb 14, 2012
1 parent 224ddae commit e1ba67f1635ec9986fddc5fd76c6462c059d5ef7
@@ -34,6 +34,7 @@
import hudson.model.Describable;
import hudson.model.Descriptor;
import hudson.model.Hudson;
import hudson.tasks.ArtifactArchiver;
import hudson.tasks.BuildStep;
import org.jenkins_ci.plugins.run_condition.BuildStepRunner;
import org.jenkins_ci.plugins.run_condition.RunCondition;
@@ -123,6 +124,10 @@ public String getDisplayName() {
.getAllowedPublishers(project);
}

public Descriptor<? extends BuildStep> getDefaultPublisher() {
return Hudson.getInstance().getDescriptorByType(ArtifactArchiver.DescriptorImpl.class);
}

}

}
@@ -37,7 +37,8 @@
</f:entry>
</f:advanced>
<f:entry>
<f:dropdownDescriptorSelector title="${%publisher}" field="publisher" descriptors="${descriptor.allowedPublishers}"/>
<f:dropdownDescriptorSelector title="${%publisher}" field="publisher" descriptors="${descriptor.allowedPublishers}"
default="${descriptor.defaultPublisher}"/>
</f:entry>

</j:jelly>

0 comments on commit e1ba67f

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