-
Notifications
You must be signed in to change notification settings - Fork 393
Azure Devops Repo Gets Relative/Undefined URL #331
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
Comments
Thanks for the report. Can you share anything else about your build spec? What are the CLI commands being run etc Thanks! |
So I'm just running netlify init --manual The initial build log after init looks like this:
Here's a screenshot of the repository setting in the netlify dashboard. When I ran
The actual repository url: I thought maybe the @ symbol was causing some problems. URL encoding the "@" symbol broke the repository, but I found I could remove the "MOBY235@" part of the url and still be able to pull/push from the remote repository. However, it still had the same undefined.com url. |
In the CI process you want to avoid Instead you can use the This is the "whole flow"
The auth token is a personal access token you can grab from your account settings page and the site ID is inside the site settings |
It seems like our dep https://github.com/netlify/cli/blob/master/src/utils/get-repo-data.js#L5 isn't picking up the Anywho, If this is for an automated CI build, the |
I wonder if this is related to #258 since azure devops repos are private by default. |
@mdarrik did you try the following commands?
|
That worked for manual deploys. |
I want to add that this issue isn't related to CI purposes. I was using Azure Dev Ops as my git repository so I didn't have to link to my personal Github from my work PC. |
Interesting! TIL It looks like the issue might be here then https://github.com/netlify/cli/blob/master/src/utils/get-repo-data.js#L40-L49 which means it will show undefined here: cli/src/utils/link/link-by-prompt.js Line 24 in 61285ee
What is the |
So it's a little weird with Azure. When you grab it from Azure, it sets it at It also works with |
Hey @mdarrik, can you please try out |
I am having this same issue. Within Netlify the repo is a relative path, which is then not found. stored as:
as opposed to the correct repo URL:
What can be done? Is there a manual way to set the repo url?
|
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
When using Azure Devops Repos, netlify-cli logs the repository url as "https://undefined.com/Team/Project/_git/repo. This ends up becoming a local URL in Netlify and prevents the site from being deployed.
- If the current behavior is a bug, please provide the steps to reproduce.
Create a repository in azure devops.
Run netlify init --manual
Check repository url
- What is the expected behavior?
Should get the full repository url
- Please mention your node.js, and operating system version.
Node: 10.15.1
OS: Windows 10
The text was updated successfully, but these errors were encountered: