Skip to content

Commit 9669e45

Browse files
authored
Include dev.azure.com in documentation and test data (jenkinsci#1765)
Microsoft Azure DevOps has transitioned its base URLs from visualstudio.com to dev.azure.com. The transition is performed by organization administrators from their organization settings. The plugin needs to test samples with the old base URL and the new base URL. Added configuration test cases for dev.azure.com based on my transition of the MarkEWaite organization from visualstudio.com to dev.azure.com. Testing done * Confirmed that azure.dev.com was being used in the randomly selected configuration changes in the tests. Ran modified tests 36 times and saw that dev.azure.com appeared in 7 of 36 runs.
1 parent d831d80 commit 9669e45

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ Options include:
560560
URL or name::
561561

562562
Root URL serving this Azure DevOps repository.
563-
For example, `\https://example.visualstudio.com/_git/my-project.`
563+
For example, `\https://dev.azure.com/example/_git/my-project`
564564

565565
[bitbucketweb-repository-browser]
566566
==== bitbucketweb

src/test/java/hudson/plugins/git/CredentialsUserRemoteConfigTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ private String randomPipelineCheckoutExtras() throws Exception {
227227
"[$class: 'RhodeCode', repoUrl: 'https://code.rhodecode.com/rhodecode-enterprise-ce']",
228228
"[$class: 'Stash', repoUrl: 'https://[email protected]/markewaite/git-plugin']",
229229
"[$class: 'TFS2013GitRepositoryBrowser', repoUrl: 'https://markwaite.visualstudio.com/DefaultCollection/git-plugin/_git/git-plugin']",
230+
"[$class: 'TFS2013GitRepositoryBrowser', repoUrl: 'https://dev.azure.com/MarkEWaite/git-plugin/_git/git-plugin']",
230231
"[$class: 'ViewGitWeb', repoUrl: 'https://git.ti.com/gitweb', projectName: 'viewgitweb-project-name-value']",
231232
// Assembla now requires login to access their URLs
232233
// "assembla('https://app.assembla.com/spaces/git-plugin/git/source')",
@@ -242,6 +243,7 @@ private String randomPipelineCheckoutExtras() throws Exception {
242243
"gogs('https://try.gogs.io/MarkEWaite/git-plugin')", // Should this be gogsGit?
243244
"kiln('https://kiln.example.com/MarkEWaite/git-plugin')",
244245
"teamFoundation('https://markwaite.visualstudio.com/DefaultCollection/git-plugin/_git/git-plugin')",
246+
"teamFoundation('https://dev.azure.com/MarkEWaite/git-plugin/_git/git-plugin')",
245247
"phabricator(repo: 'source/tool-spacemedia', repoUrl: 'https://phabricator.wikimedia.org/source/tool-spacemedia/')",
246248
"redmine('https://www.redmine.org/projects/redmine/repository')",
247249
"rhodeCode('https://code.rhodecode.com/rhodecode-enterprise-ce')",

src/test/java/jenkins/plugins/git/traits/MultibranchProjectTraitsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ private String randomBrowserSymbolName() {
106106
" browser: gogs('https://try.gogs.io/MarkEWaite/git-plugin'),\n", // Should this be gogsGit?
107107
" browser: kiln('https://kiln.example.com/MarkEWaite/git-plugin'),\n",
108108
" browser: teamFoundation('https://markwaite.visualstudio.com/DefaultCollection/git-plugin/_git/git-plugin'),\n",
109+
" browser: teamFoundation('https://dev.azure.com/MarkEWaite/_git/git-plugin'),\n",
109110
" browser: phabricator(repo: 'source/tool-spacemedia', repoUrl: 'https://phabricator.wikimedia.org/source/tool-spacemedia/'),\n",
110111
" browser: redmine('https://www.redmine.org/projects/redmine/repository'),\n",
111112
" browser: rhodeCode('https://code.rhodecode.com/rhodecode-enterprise-ce'),\n",
@@ -136,6 +137,7 @@ private String randomBrowserClass() {
136137
" browser: [$class: 'RedmineWeb', repoUrl: 'https://www.redmine.org/projects/redmine/repository'],\n",
137138
" browser: [$class: 'Stash', repoUrl: 'https://[email protected]/markewaite/git-plugin'],\n",
138139
" browser: [$class: 'TFS2013GitRepositoryBrowser', repoUrl: 'https://markwaite.visualstudio.com/DefaultCollection/git-plugin/_git/git-plugin'],\n",
140+
" browser: [$class: 'TFS2013GitRepositoryBrowser', repoUrl: 'https://dev.azure.com/MarkEWaite/_git/git-plugin'],\n",
139141
" browser: [$class: 'RhodeCode', repoUrl: 'https://code.rhodecode.com/rhodecode-enterprise-ce'],\n",
140142
" browser: [$class: 'ViewGitWeb', repoUrl: 'https://git.ti.com/gitweb', projectName: 'viewgitweb-project-name-value'],\n", // Not likely a viewgit site, but reasonable approximation
141143
};

0 commit comments

Comments
 (0)