forked from jenkinsci/bitbucket-branch-source-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle value "https" in clone link name
In Bitbucket Service "http" is used as http link name, but in Bitbucket Cloud "https" is used. Bug was introduced in jenkinsci#796. Fixes jenkinsci#804.
- Loading branch information
1 parent
28d74e8
commit a02cbdf
Showing
3 changed files
with
34 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ public void given__cloud_branch_rev_anon__when__build__then__scmBuilt() throws E | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -153,7 +153,7 @@ public void given__cloud_branch_rev_userpass__when__build__then__scmBuilt() thro | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -213,7 +213,7 @@ public void given__cloud_branch_rev_userkey__when__build__then__scmBuilt() throw | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -271,7 +271,7 @@ public void given__cloud_branch_norev_anon__when__build__then__scmBuilt() throws | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -317,7 +317,7 @@ public void given__cloud_branch_norev_userpass__when__build__then__scmBuilt() th | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -363,7 +363,7 @@ public void given__cloud_branch_norev_userkey__when__build__then__scmBuilt() thr | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -915,7 +915,7 @@ public void given__cloud_pullHead_rev_anon__when__build__then__scmBuilt() throws | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -979,7 +979,7 @@ public void given__cloud_pullHead_rev_userpass__when__build__then__scmBuilt() th | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1042,7 +1042,7 @@ public void given__cloud_pullHead_rev_userkey__when__build__then__scmBuilt() thr | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1106,7 +1106,7 @@ public void given__cloud_pullHead_rev_anon_sshtrait_anon__when__build__then__scm | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1176,7 +1176,7 @@ public void given__cloud_pullHead_rev_userpass_sshtrait_anon__when__build__then_ | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1246,7 +1246,7 @@ public void given__cloud_pullHead_rev_userkey_sshtrait_anon__when__build__then__ | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1316,7 +1316,7 @@ public void given__cloud_pullHead_rev_anon_sshtrait_userkey__when__build__then__ | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1386,7 +1386,7 @@ public void given__cloud_pullHead_rev_userpass_sshtrait_userkey__when__build__th | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1456,7 +1456,7 @@ public void given__cloud_pullHead_rev_userkey_sshtrait_userkey__when__build__the | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1522,7 +1522,7 @@ public void given__cloud_pullHead_norev_anon__when__build__then__scmBuilt() thro | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1570,7 +1570,7 @@ public void given__cloud_pullHead_norev_userpass__when__build__then__scmBuilt() | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -1618,7 +1618,7 @@ public void given__cloud_pullHead_norev_userkey__when__build__then__scmBuilt() t | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -2484,7 +2484,7 @@ public void given__cloud_pullMerge_rev_anon__when__build__then__scmBuilt() throw | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -2568,7 +2568,7 @@ public void given__cloud_pullMerge_rev_userpass__when__build__then__scmBuilt() t | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -2652,7 +2652,7 @@ public void given__cloud_pullMerge_rev_userkey__when__build__then__scmBuilt() th | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -2732,7 +2732,7 @@ public void given__cloud_pullMerge_norev_anon__when__build__then__scmBuilt() thr | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|
@@ -2800,7 +2800,7 @@ public void given__cloud_pullMerge_norev_userpass__when__build__then__scmBuilt() | |
|
||
instance.withCloneLinks( | ||
List.of( | ||
new BitbucketHref("http", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("https", "https://bitbucket.org/tester/test-repo.git"), | ||
new BitbucketHref("ssh", "ssh://[email protected]/tester/test-repo.git") | ||
), | ||
List.of() | ||
|