We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 018731a + 5e6b956 commit 86d252cCopy full SHA for 86d252c
src/main/java/org/jenkinsci/plugins/bitbucket/BitbucketBuildStatusHelper.java
@@ -96,6 +96,10 @@ private static List<BitbucketBuildStatusResource> createBuildStatusResources(fin
96
97
// expand parameters on repo url
98
String repoUrl = build.getEnvironment(new LogTaskListener(logger, Level.INFO)).expand(repoUri.getPath());
99
+ if (repoUrl.endsWith("/")) {
100
+ //fix JENKINS-49902
101
+ repoUrl = repoUrl.substring(0, repoUrl.length() - 1);
102
+ }
103
104
// extract bitbucket user name and repository name from repo URI
105
String repoName = repoUrl.substring(
0 commit comments