-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
user-documentation/moderne-cli/how-to-guides/on-prem-scm-config.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# On prem source code management (SCM) server configuration | ||
|
||
In order for Moderne DX to correctly map repository clone URLs to the right origin and path we need to know the base URL(s) for your SCM server. With SaaS SCM services like GitHub, GitLab, Bitbucket (cloud) and AzureDevOps these are well known URLs, to use these no extra configuration is required. | ||
However, for any on-prem SCM servers we do need to configure the type, base URL and any alternate URLs that are used to access the server. | ||
|
||
## Configure your on prem SCM servers | ||
|
||
You can use the following command to configure a new SCM server: | ||
|
||
```shell | ||
mod config scm add Bitbucket https://bitbucket.example.com/stash --alternate-url ssh://bitbucket.example.com:7999 --alternate-url http://bitbucket.example.com:8080/stash | ||
``` | ||
|
||
If a server with this type and base URL already exists, it will be updated with the supplied alternate URLs. | ||
|
||
To remove a configuration you can use: | ||
|
||
```shell | ||
mod config scm remove Bitbucket https://bitbucket.example.com/stash | ||
``` |