package org.jenkinsci.plugins.p4.console; import hudson.model.TaskListener; import org.jenkinsci.plugins.p4.client.ConnectionHelper; import com.perforce.p4java.server.callback.IProgressCallback; public class P4Progress implements IProgressCallback { private final TaskListener listener; private final ConnectionHelper p4; public P4Progress(TaskListener listener, ConnectionHelper p4) { this.listener = listener; this.p4 = p4; } public void start(int key) { } public boolean tick(int key, String msg) { if (msg != null && !msg.isEmpty()) { log(msg); } if (Thread.interrupted()) { log("(p4):stop:exception\n"); log("P4: ABORT called!"); p4.abort(); return false; } return true; } public void stop(int key) { log("(p4):stop:" + key); } private void log(String msg) { if (listener == null) { return; } listener.getLogger().println(msg); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 29673 | Sandeep Kumar |
Merge pull request #188 from jenkinsci/CodeRefactoring Code Cleanup |
||
#6 | 28464 | Paul Allen |
Formalise user session cache. Added Jelly options to Global Configuration. User cache is disabled by default. Ticket Minimum life is set to 30 minutes. JENKINS-60141 |
||
#5 | 27488 | Paul Allen | Null check P4SCM before access. | ||
#4 | 27442 | Paul Allen |
Added global - hide Server messages option. JENKINS-59750 |
||
#3 | 25759 | matthew_smeeth |
Use iclient.reconcileFiles over old execMap method. Added extra logging to reconcile |
||
#2 | 15430 | Paul Allen |
Trap User Abort and stop Perforce. Uses the ‘tick’ function on Progress to check if the Thread has been interrupted. If a user aborts the build then the Perforce connection is dropped at the next tick. JENKINS-26650 |
||
#1 | 12976 | Paul Allen | Improved logging to include 'actual' Perforce command. | ||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/console/P4Callback.java | |||||
#1 | 12953 | Paul Allen |
Update logging to support expand/collapse divs. - Additional Publish logging |
||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/client/ClientProgress.java | |||||
#2 | 12417 | Paul Allen |
Extend Jenkins support back to 1.568 - remove @Override annotations - remove jenkins.security.Roles |
||
#1 | 12296 | Paul Allen | Monitor P4Java progress, reporting to console log. |