package org.jenkinsci.plugins.p4.filters; import hudson.Extension; import org.jenkinsci.Symbol; import org.kohsuke.stapler.DataBoundConstructor; import java.io.Serializable; import java.util.List; public class FilterLatestChangeImpl extends Filter implements Serializable { private static final long serialVersionUID = 1L; private final boolean latestChange; @DataBoundConstructor public FilterLatestChangeImpl(boolean latestChange) { this.latestChange = latestChange; } public boolean isLatestChange() { return latestChange; } @Extension @Symbol("latest") public static final class DescriptorImpl extends FilterDescriptor { @Override public String getDisplayName() { return "Polling latest change"; } } public static boolean isActive(List<Filter> filter) { if (filter == null) { return false; } for (Filter f : filter) { if (f instanceof FilterLatestChangeImpl) { if (((FilterLatestChangeImpl) f).isLatestChange()) { return true; } } } return false; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 29801 | Sandeep Kumar |
1. Minor UI changes in filters 2. Add help icon for LatestWithPin filter. |
||
#1 | 27492 | Paul Allen |
Add new Filter to build with the latest change found during polling. JENKINS-63879 |