Skip to content

Commit bb0e7ab

Browse files
committed
[JENKINS-75400] Building tags containing slashes is broken for bitbucket server
Fix encoding of the URL for single tag endpoint. Tag name must be encoded but slash char.
1 parent c41eb36 commit bb0e7ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/server/client/BitbucketServerAPIClient.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ public BitbucketServerBranch getTag(@NonNull String tagName) throws IOException,
562562
.set("owner", getUserCentricOwner())
563563
.set("repo", repositoryName)
564564
.set("tagName", tagName)
565-
.expand();
565+
.expand()
566+
.replace("%2F", "/");
566567

567568
String response = getRequest(url);
568569
BitbucketServerBranch tag = JsonParser.toJava(response, BitbucketServerBranch.class);

0 commit comments

Comments
 (0)