In what cases is $REPOSITORY_URL not available?

Looking at https://docs.netlify.com/configure-builds/environment-variables/#git-metadata, it says that the REPOSITORY_URL env var will always be available during build time – however, in one of my cases I see that it is blank.

Is there any documentation about this env var specifically? Or if it could be set to a value that is not the HTTP address of the git repo?

Thanks!

Hi, @jasonb, and welcome to the Netlify community site. Would you please link us to the deploy where the REPOSITORY_URL environment variable is unavailable?

Regarding changing the URL to something other than the HTTP URL for the site, we always use the HTTP URL. You can change the location of the repo to a privately hosted Git server with manual linking:

If it is a self-hosted GitLab instance, this might be helpful:

​Please let us know if there are other questions about this.

Thanks @luke! Here’s a build log where REPOSITORY_URL is unavailable: https://app.netlify.com/sites/videojs-dot-com/deploys/5e8e9dea4e12d6a0ecafb7b1

I think it might be caused because the build is triggered by an IFTTT action?

Yup - you’ve figured it out. We only set most git-related variables when it is a build triggered from your git provider, rather than a webhook.