package org.jenkinsci.plugins.p4.publish; import org.junit.Assert; import org.junit.Test; /** * Created by pallen on 31/10/2016. */ public class PurgeLimitTest { @Test public void testPurge() { String desc = "Configuration change"; boolean success = false; boolean delete = true; boolean reopen = false; SubmitImpl publish = new SubmitImpl(desc, success, delete, reopen, "11"); Assert.assertEquals(16, publish.getPurgeValue()); publish = new SubmitImpl(desc, success, delete, reopen, "300"); Assert.assertEquals(512, publish.getPurgeValue()); publish = new SubmitImpl(desc, success, delete, reopen, "10"); Assert.assertEquals(10, publish.getPurgeValue()); publish = new SubmitImpl(desc, success, delete, reopen, "600"); Assert.assertEquals(512, publish.getPurgeValue()); publish = new SubmitImpl(desc, success, delete, reopen, "foo"); Assert.assertEquals(0, publish.getPurgeValue()); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 25668 | Paul Allen |
Merge pull request #94 from lystor/bug-56414 JENKINS-56414: Support of Reconcile with Modtime in P4Publish |
||
#2 | 22128 | Paul Allen |
Helix Graph support for Jenkins. JENKINS-40354 |
||
#1 | 20954 | Paul Allen |
Add purge -S<n> option for the Submit stage of Publish. If a value is provided it will set the purge option on all files found as part of the reconcile (ADD/EDIT). It will not remove the purge option once set. JENKINS-36112 |