package org.jenkinsci.plugins.p4_client.populate; import hudson.Extension; import org.kohsuke.stapler.DataBoundConstructor; public class AutoCleanImpl extends Populate { private final boolean replace; private final boolean delete; @DataBoundConstructor public AutoCleanImpl(boolean replace, boolean delete) { super(true, false); // normal sync; no -f, no -p this.replace = replace; this.delete = delete; } public boolean isReplace() { return replace; } public boolean isDelete() { return delete; } @Extension public static final class DescriptorImpl extends PopulateDescriptor { @Override public String getDisplayName() { return "Auto cleanup and sync"; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
#2 | 9472 | Paul Allen |
Added support to pin build at a label in the populate configuration. - includes help and updates to tests. |
||
#1 | 9115 | Paul Allen |
Initial implementation of workspace Cleanup and Sync options. - Includes 3 modes: Automatic Clean/Sync, Force Clean/Sync, Sync Only Automatic Clean/Sync Uses reconcile to clean up workspace and sync changes. Force Clean/Sync Force sync of all files (does not remove files yet...) Sync Only Normal sync with no cleanup TODO: - remove of files in Force Clean/Sync mode - Inline help - Update docs - Add unit/functional tests |