From 59e7da6be1eec42d0de83ab31104c5288365116d Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Thu, 15 Oct 2020 11:42:21 -0400 Subject: [PATCH] Diagnostics for GHFileNotFoundException from retrieve --- .../plugins/github_branch_source/GitHubSCMSource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java index 1922dad8b..bb5fae0a9 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java @@ -35,6 +35,7 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import hudson.AbortException; import hudson.Extension; +import hudson.Functions; import hudson.RestrictedSince; import hudson.Util; import hudson.console.HyperlinkNote; @@ -1037,7 +1038,7 @@ public SCMSourceCriteria.Probe create(@NonNull BranchSCMHead head, retrievePullRequest(github, ghRepository, pr, strategies, request, listener); } catch (FileNotFoundException e) { listener.getLogger().format("%n Error while processing pull request %d%n", number); - listener.getLogger().format("%n Reason: %s%n", e); + Functions.printStackTrace(e, listener.getLogger()); errorCount++; } count++;