Custom Git Data Source Credential

From Lingoport Wiki
Revision as of 15:09, 7 January 2025 by Rwilliams (talk | contribs) (Bitbucket / Custom Git)
Jump to: navigation, search

Bitbucket / Custom Git

[Administrator]

For special git repositories, such as Bitbucket, use Custom Git. It provides flexibility for special Git systems.

Bitbucket PAT Creation Notes

Bitbucket allows PATs to be created at the Project or the Repository level. In this description the PAT was created at the repository level

  • Within the Bitbucket repository, go to Repository Settings -> Access Tokens select Create Repository Access Token

BitbucketPATCreationForm.jpg

  • Give the token a name that can be easily identified
  • Select the scopes of Read/Write/Delete
  • Press Create

There should be a new screen that appears showing the newly created PAT and the various ways to leverage it. Be sure to save the contents of this screen as everything but the email user.email section will no longer be visible once closed.

BitbucketPATCreationDetails.jpg

The Administrator can create the data source credentials by selecting the CreateIcon.jpg (Create new credential) button on the Manage Data Source Credentials page.

Select the Custom Git card

BitbucketCard.jpg

The Custom Git Connection Form will open

600px

Enter the details for the Custom Git Form

  • Enter a Username.
    • The username will be x-token-auth as provided by Bitbucket as part of the git clone URL provided by Bitbucket when the PAT was initially created.
  • Enter the Personal access token
    • The PAT is the Token itself as provided by Bitbucket in the first text box that was created by the Bitbucket service. Be sure not to add the username portion or the @<URL> portion to this.
  • Enter the Commit author
  • Enter the Commit email
    • If the Bitbucket provided user.email is input here, when commits occur from Command Center, they will show in Bitbucket with a commit author as token name provided when the PAT was created in Bitbucket
  • Enter the URL, for example, https://bitbucket.org/account/
  • Next

BitbucketGitCredentials.jpg

Give the new credential a name

  • The name should be something that is easily identified when applied from a project as the being the correct PAT
  • Assign it to applicable managers
  • Create

BitbucketCredentialName.jpg

The system should return to the Manage Data Source Credentials page with "Credential created" note and the new credential should be listed.