Skip to content

Conversation

omusavi
Copy link

@omusavi omusavi commented Mar 7, 2019

Using the old visualstudio.com style URL still work to find and configure the project collection, but when trying to set up a Post-Build service callback back to Azure DevOps, the plugin currently fails with the following error:
ERROR: There is no team project collection configured for the URL 'https://dev.azure.com/<collection>/'. Please go to Jenkins > Manage Jenkins > Configure System and then add a Team Project Collection with a Collection URL of 'https://dev.azure.com/<collection>/'.

Seems like at some level, the server must respond with it's own URL which is different than what the plugin expects. On top of that, new users of Azure DevOps may not know about the old URL format and putting in dev.azure.com/<collection name> gives a validation error.

This PR modified the validation methods that check the hostname for *.visualstudio.com to also accept dev.azure.com as a hostname.

@omusavi
Copy link
Author

omusavi commented Mar 7, 2019

Note that I am not an expert in this plugin, but this change was enough to unblock our scenario on our local Jenkins instance. If there are additional places where changes should be made let me know! Seems in general there should probably be some renaming work done to go from TFS -> AzDO but thats a pretty big item :)

@jdstapleton
Copy link

I created a jira issue linking this ticket: JENKINS-61718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants