-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure DevOps cannot clone repo in non-default structure #2755
Comments
Hi @gaom25 . Thank you for the issue. I re-titled it since Azure DevOps is working for other folks. It seems that you want to use something outside of the non-default structure. Please (either you or someone else who wants to take this on) take a look at the Azure DevOps golang client code and see if you can find a way to allow customizing the clone structure. https://github.com/runatlantis/atlantis/blob/main/server/events/vcs/azuredevops_client.go Also this one maybe more relevant atlantis/server/events/event_parser.go Lines 910 to 946 in 1fbbcca
Perhaps passing in a new flag like
to
But it could be more complicated because I do not know how owner/project/repo map. |
Getting the same issue. I don't know how you can call this a non-default structure. AFAIK you cannot customize this structure when using Azure DevOps Services. I'm not setting any of these vars and am getting a similar issue in that its building the URL its trying to use to clone incorrectly EDIT: |
Community Note
Overview of the Issue
The structure of the repositories in AzureDevops in our organization is:
{owner}.visualstudio.com/{project}_git/{repo}
When setting the variables for Atlantis of owner and project with the format
{owner}.visualstudio.com/{project}/*
or
dev.azure.com/{owner}/{project}/*
Atlantis tries to clone the repo with the structure
{owner}.visualstudio.com/{owner}/{project}/*
or
dev.azure.com/{owner}/{owner}/{project}/*
Causing a 404 Error
Reproduction Steps
Use the latest version of Atlantis(0.21.0) and set the variables to connect to AzureDevops.
You can use the variables of ATLANTIS_REPO_ALLOWLIST in wildcard(*) and it will trigger the error
Logs
Environment details
Additional Context
This is the data that AzureDevops send
The text was updated successfully, but these errors were encountered: