Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

We recommend using the SSH protocol for authentication between MettleCI Workbench and your remote Git repositories as it is easier to manage access in a uniform manor across multiple remote Git repository hosts (Github, Bitbucket, Gitlab, etc). SSH keys also tend to be more secure than username/password credentials.

In the event that you need to use Git HTTPS rather than SSH, you can configure MettleCI Workbench to use a single set of username/password credentials for all Git HTTPS requests by modifying the config.yml as shown below:

...
gitAuthentication:
  sshKey: "/opt/dm/mci/workbench.key"
  httpsUsername: <Workbench Git Username>
  httpsPassword: <Workbench Git Password>
...

MettleCI Workbench will need to be restarted after saving changes to config.yml.

You can then enter Git HTTPS or SSH repository URLS in the project registration page. The ssh or https credentials will be used depending on the configured Git protocol, any username shown in the URL will be ignored and overridden by the settings included in config.yml:

Tip
While most Git repository hosts only support HTTPS and SSH protocols, MettleCI Workbench also supports HTTP and FTP. The same httpsUsername and httpsPassword credentials are used, the only difference is the registered Git URL will be prefixed with http:// or ftp:// protocols.

  • No labels