How To Clone A GitLab Repository In UiPath Studio?

Not familiar with UiPath Studio and/or GitLab and need a walkthrough of how to set up Studio to clone a GitLab repository or what authentication method to use.

Cloning a GitLab Repository in UiPath

Using a Personal Access Token (PAT)

  1. Generate a PAT:
    • Go to the GitLab account settings.
    • Create a new token, providing a Token Name and Expiry date.
      • Copy the PAT
      • Make sure to save it - it cannot be accessed again.
      • Connect in Studio > Home > Team > GIT > Clone Repository.
    • In Select Scopes, choose api or another scope that suits your needs.
    • Copy the URL under Clone with HTTPS
image.png
image.png
  • Paste the "Clone to HTTPS" URL in Repository URL.
  • Specify a directory.
  • Set Authentication to Token.
  • Add user.
  • Copy the PAT into Token.
  • Click Open


Using an SSH Key

  1. Generate an SSH Key:
  2. Copy the URL under Clone with SSH
image.png
  1. Go to Studio > Home > Team > GIT > Clone Repository
  2. Select Use SSH
gitlab-clone-repo-ssh
  • Paste the "Clone to HTTPS" URL in Repository URL.
  • Provide Check out directory.
  • Select Token as Authentication.
  • Provide the path to the generated private key.
  • Add the passphrase as Password if there is one created. If not, leave the Password box empty.
  • Click Open.


In case of any errors, download Git Bash and use it to help troubleshoot to see if the same errors occur before logging a support case with UiPath.


References
1 Like