Difference between revisions of "Custom Git Data Source Credential"

From Lingoport Wiki
Jump to: navigation, search
(Bitbucket / Custom Git)
(Bitbucket / Custom Git)
Line 3: Line 3:
   
 
For special git repositories, such as Bitbucket, use Custom Git. It provides flexibility for special Git systems.
 
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
  +
[[File:BitbucketPATCreationForm.jpg|600px]]
  +
* 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.
  +
  +
[[File:BitbucketPATCreationDetails.jpg|600px]]
   
 
The Administrator can create the data source credentials by selecting the [[File:CreateIcon.jpg|30px]] ('''Create new credential''') button on the Manage Data Source Credentials page.
 
The Administrator can create the data source credentials by selecting the [[File:CreateIcon.jpg|30px]] ('''Create new credential''') button on the Manage Data Source Credentials page.
Line 12: Line 26:
 
[[File:BitbucketUsername.jpg|600px]]
 
[[File:BitbucketUsername.jpg|600px]]
   
'''Enter a Username the Personal access token.'''
+
'''Enter the details for the Custom Git Form'''
  +
* Enter a Username.
* Enter the URL, for example, ''https://bitbucket.company.com/''
 
  +
** 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'''
 
* '''Next'''
  +
[[File:BitbucketGitCredentials.jpg|600px]]
 
[[File:BitbucketName.jpg|600px]]
 
   
 
'''Give the new credential a name'''
 
'''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
 
* Assign it to applicable managers
 
* '''Create'''
 
* '''Create'''
  +
  +
[[File:BitbucketCredentialName.jpg|600px]]
   
 
The system should return to the '''Manage Data Source Credentials''' page with "Credential created" note and the new credential should be listed.
 
The system should return to the '''Manage Data Source Credentials''' page with "Credential created" note and the new credential should be listed.

Revision as of 15:06, 7 January 2025

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

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.