From c4dd43bafa17dc3eb714a8dad2032670d8ebbdaf Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Fri, 17 Jan 2025 00:33:56 -0800 Subject: [PATCH] Migrate from EE 8 to EE 9 (#971) --- .../com/cloudbees/jenkins/plugins/bitbucket/BitbucketLink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketLink.java b/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketLink.java index d27717e7b..74612c9a7 100644 --- a/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketLink.java +++ b/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketLink.java @@ -71,7 +71,7 @@ public String getIconFileName() { Icon icon = IconSet.icons.getIconByClassSpec(iconClassName + " icon-md"); if (icon != null) { JellyContext ctx = new JellyContext(); - ctx.setVariable("resURL", Stapler.getCurrentRequest().getContextPath() + Jenkins.RESOURCE_PATH); + ctx.setVariable("resURL", Stapler.getCurrentRequest2().getContextPath() + Jenkins.RESOURCE_PATH); return icon.getQualifiedUrl(ctx); } }