mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
added a debug probe for issue #591 "Unable to lock working copy"
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3470 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c9b32457c9
commit
21a90bf60b
2 files changed
+10
-2
No files matched your search
@@ -4,11 +4,13 @@ import hudson.FilePath;
|
||||
import hudson.FilePath.FileCallable;
|
||||
import hudson.Launcher;
|
||||
import hudson.Util;
|
||||
import hudson.triggers.SCMTrigger;
|
||||
import hudson.model.AbstractBuild;
|
||||
import hudson.model.AbstractProject;
|
||||
import hudson.model.BuildListener;
|
||||
import hudson.model.Hudson;
|
||||
import hudson.model.TaskListener;
|
||||
import hudson.model.SCMedItem;
|
||||
import hudson.remoting.Callable;
|
||||
import hudson.remoting.Channel;
|
||||
import hudson.remoting.VirtualChannel;
|
||||
@@ -306,6 +308,10 @@ public class SubversionSCM extends SCM implements Serializable {
|
||||
|
||||
} catch (SVNException e) {
|
||||
e.printStackTrace(listener.error("Failed to update "+l.remote));
|
||||
// trouble-shooting probe for #591
|
||||
if(e.getErrorMessage().getErrorCode()==SVNErrorCode.WC_NOT_LOCKED) {
|
||||
listener.getLogger().println("Polled jobs are "+SCMTrigger.DESCRIPTOR.getItemsBeingPolled());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ import java.util.Date;
|
||||
import java.util.Set;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.CancellationException;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
@@ -164,8 +166,8 @@ public class SCMTrigger extends Trigger<SCMedItem> {
|
||||
* Gets the snapshot of {@link SCMedItem}s that are being polled at this very moment.
|
||||
* Designed for trouble-shooting probe.
|
||||
*/
|
||||
public SCMedItem[] getItemsBeingPolled() {
|
||||
return items.toArray(new SCMedItem[0]);
|
||||
public List<SCMedItem> getItemsBeingPolled() {
|
||||
return Arrays.asList(items.toArray(new SCMedItem[0]));
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
|
||||
Reference in new issue
Block a user