This topic describes how to create a VCS Repository. This is required before publishing and installing VCS packages. Artifactory supports the following repository types for VCS packages:
Remote repositories: Enable you to download from any remote location, including external package registries or other Artifactory instances
Note
Artifactory does not support local or virtual repositories for VCS.
For more information on JFrog repositories, see Repository Management Overview.
Prerequisite:
You need to create a Remote Repository which serves as a caching proxy for github.com. If necessary, you can do the same for bitbucket.org or any other remote git repository that you need.
You need Admin or Project Admin permissions to create a VCS repository. If you don't have Admin permissions, the option will not be available.
Artifacts (such as tar.gz files) requested from a remote repository are cached on demand. You can remove downloaded artifacts from the remote repository cache. You can not manually deploy artifacts to a remote repository.
To create a VCS repository:
In the Administration tab, click Repositories > Create a Repository and from the dropdown list select Remote. The Select Package Type screen appears.
In the Select Package Type screen, select VCS.
Set the Repository Key, and specify the URL to be
https://github.com(or your GitHub Enterprise URL endpoint) as displayed below:Scroll down to VCS Settings and select one of the following settings for the Git Provider:
GitHub Cloud: For repositories hosted on
https://github.com.Example:
https://github.com/myorg/myrepo.gitGitHub Server: For repositories hosted on a private GitHub Enterprise Server.
Example:
https://git.mycompany.com/myorg/myrepo.gitBitbucket Cloud: For repositories hosted on
https://bitbucket.org.Example:
https://bitbucket.org/myorg/myrepo.gitBitbucket Server: For repositories hosted on a self-managed Bitbucket Server or Bitbucket Data Center.
Example:
https://bitbucket.mycompany.com/scm/myproj/myrepo.gitBitbucket Server (Stash prior to 5.1.0): For Atlassian Stash installations (Bitbucket prior to v5.1).
Example:
https://stash.mycompany.com/scm/myproj/myrepo.gitArtifactory: For remote repositories hosted on another JFrog Artifactory instance.
Example:
https://artifactory.mycompany.com/artifactory/my-repoCustom: For VCS providers not listed. Provide the URL and credentials manually.
Note
The VCS repository feature, including the Custom provider, currently only supports a two-level path structure (e.g.,
organization/repository). Nested repository paths common in GitLab (e.g.,group/subgroup/repository) are not supported.
Click Create Remote Repository.