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 FilterPerChangeImpl extends Filter implements Serializable { private static final long serialVersionUID = 1L; private final boolean perChange; @DataBoundConstructor public FilterPerChangeImpl(boolean perChange) { this.perChange = perChange; } public boolean isPerChange() { return perChange; } @Extension @Symbol("incremental") public static final class DescriptorImpl extends FilterDescriptor { @Override public String getDisplayName() { return "Polling per Change"; } } public static boolean isActive(List<Filter> filter) { if (filter == null) { return false; } for (Filter f : filter) { if (f instanceof FilterPerChangeImpl) { if (((FilterPerChangeImpl) f).isPerChange()) { return true; } } } return false; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 29801 | Sandeep Kumar |
1. Minor UI changes in filters 2. Add help icon for LatestWithPin filter. |
||
#4 | 27492 | Paul Allen |
Add new Filter to build with the latest change found during polling. JENKINS-63879 |
||
#3 | 22684 | Paul Allen | Added @Symbol to Extension classes for Pipeline Syntax. | ||
#2 | 11367 | Paul Allen |
Fixes to Remote slave polling - Missing Serializable on Filter classes - Pass a list of changes using return |
||
#1 | 10525 | Paul Allen |
Update Changelist calculation. Changed the SCM Polling and change listing reporting to calculate the last change based on the highest reported 'have' entry from 'p4 cstat' and then list using 'p4 changes'. JENKINS-24978 JENKINS-24607 |