This documentation relates to QuickBuild 11.0.x
Select here if you are using a different version

Working with Azure Devops

Version 2 by Steve Luo
on Mar 09, 2021 14:26.


compared with
Version 3 by Steve Luo
on Mar 09, 2021 15:37.


Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 5 changes. View first change.

 QuickBuild integrates with Azure Devops via the Azure repository. This repository has all features of a normal Git repository, but add the ability to build against pull requests, and update the status based on build result for commits or pull requests.
  
 h2. Configure Azure Repository
  h2. Build against Pull Requests
  
If you want to
  If you want to build against pull request, username field and password field are required. The password can also use a personal access token instead. To generate personal access token, please see [this page|https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=preview-page].
  
If the personal access token is used, the token should at least include {{code read}} scope.
  
You can filter the pull requests by adding the parameters you want:
  
 !pull-request-settings.png!
  
 Now, QuickBuild can build against the pull request branch {{refs/pull/*/merge}}.
  
 h2. Azure Devops Webhook
  
 QuickBuild can trigger build via Azure Devops web hooks.
  
 h3. Configure QuickBuild Side
  
 h4. Add anonymous group
 As the webhook is triggered without authentication, anonymous group should be added and it should have the permission to use RESTful API.
  
 h4. Add webhook settings
 To add integration at QuickBuild side, please go to configuration settings page and then choose Webhook -> Azure Devops from right side menu:
  
 !webhook-menu.png!
  
  
 h3. Configure Azure Side
  
 To enable the webhook, first you need go to Azure Devops web hook settings page to configure the QuickBuild side related information:
  
 !azure-webhook.png!
  
 *Important* you need add Authorization header if you specify the secret at QuickBuild side. The header looks like below (replace the *my-scret-code* to your actual secret token):
  
 {code}
 Authorization: Basic my-secret-code
 {code}
  
  
 If you want to use some custom parameters, you can add them to your webhook url like below:
  
 http://your.quickbuild.com/rest/webhook/webhook/14?target=android
  
 Then, later you can use target parameter in your trigger condition.