External SCM - Azure RepositoryThis page demonstrates the process of setting up an Azure External SCM repository. Table of Contents
Azure is supported as an external SCM service provider. Application ConfigurationTo be able to create an external SCM repository, the below configuration must be set in the Application Configuration: "externalProviderScm" : { "enabled" : true }
Access TokenFor more information on Azure access tokens, see Use personal access tokens - Azure DevOps. When creating access tokens in Azure, Full access permission must be given. To create and edit access tokens in Codebeamer, Project-Admin role is required. Create Access TokensTo add an access token,
For security reasons, the access tokens for all service providers are encrypted. The encryption is kept after upgrades as well. On the SCM Access Token Tracker page, when pasting the access token to Token field, the token is visible. After clicking Save, the token is immediately encrypted.
Edit Access TokensTo edit the encrypted access token,
The History tab displays the changes, and due to the encryption, the actual tokens are never revealed.
If a repository has already been created, the access token can also be edited via the SCM Repositories tab:
Add a New External SCM Azure RepositoryA new external SCM Azure repository can be added either in the SCM Repositories tab of a project or via the SCM Repository Tracker. Before adding a new external repository, ensure that the feature is enabled in the Application Configuration.
To add a new repository,
External SCM repositories can also be created via Swagger API. For further information, see page Create an External SCM Repository Item. Edit An External SCM Azure RepositoryThe values provided during the creation of a repository can be updated if necessary.
To edit the details of a repository,
External SCM repositories can also be edited via Swagger API. For further information, see page Update an External SCM Repository Item. Repository InformationOnce an Azure repository is created, its details can be checked and edited:
In case of Azure, clicking the link in the Url field, for example Repository #12345, opens the last visited branch in Azure, instead of the main branch. Synchronization of the Azure Repository DetailsSet up the synchronization details in the Application Configuration.
Example configuration: "externalProviderScm" : { "enabled" : true, "jobDoneCommentEnabled" : true, "repositorySynchronizationPeriodInSeconds" : 1800, "synchronizationCyclePeriodInSeconds" : 1800, }
The following table lists and describes the parameters of the configuration:
Update Synchronization - LimitationWhen performing an SCM repository update synchronization, the Azure API response returns only the creation and merge dates. The last update date of the pull requests is not returned as this function is not supported by the API.Full SynchronizationThe SCM repository full synchronization option has been added to the context menu of the Repository Information page.
The SCM repository full synchronization first deletes the available data, then retrieves the whole dataset again. Since using the SCM repository full synchronization option is much more time-consuming than the SCM repository update synchronization, the following warning is displayed: "Are you sure that you want to do full synchronization? It will retrieve all the details again." To perform a full synchronization,
WebhooksTo set up a Webhook in Azure,
For further information, see Webhooks with Azure DevOps. Update Codebeamer Item Statuses Based on Pull Request StatusesThe statuses of Codebeamer items are updated based on the statuses of pull requests. Status updates must be set in the Application Configuration.
Application ConfigurationThe followings must be set in the Application Configuration: "statusMapping" : { "inOpenTransition" : "In Progress", "inMergedTransition" : "Resolve", "inClosedTransition" : "Close", "projectId" : 12, },
The following table lists and describes the parameters of the configuration:
To apply different status update settings for another project, the proper parameters with the correct values as well as the relevant project ID must be defined separately in the Application Configuration. For example: "statusMapping" : { "inOpenTransition" : "In Progress", "inMergedTransition" : "Resolve", "inClosedTransition" : "Close", "projectId" : 12, "inOpenTransition" : "In Progress", "inMergedTransition" : "Resolve", "inClosedTransition" : "QA Pass", "projectId" : 14, },
Assign Reviewers to Pull RequestsRequired and Optional reviewers can be assigned to pull requests in Azure. Reviewers can be users, teams and groups as well.
To assign reviewers to a pull request,
If reviewers are assigned to a pull request in Azure, the user, team or group set as reviewers are indicated along with the pull request details under the SCM Commits tab of the related Codebeamer tracker item.
The Required Reviewers in Azure and the Optional Reviewers in Azure fields have been added to the item details page of the SCM Pull Request Tracker items. The name of the reviewers in the Required Reviewers in Azure or Optional Reviewers in Azure fields are clickable links. By clicking the name of a reviewer, the Azure profile of the reviewer opens. |
Fast Links
codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, furthermore helps us to understand your interests and provide more personalized services to you, both on this website and through other media. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. For more information about the cookies we use, please visit our Privacy Policy.Your preferences will apply to this website only.