Azure DevOps Pipelines
Documentation on setting up Azure DevOps build jobs to sync with DevGrid.
Integrate DevGrid with your pipeline. Keep your entity data up to date, and push important pipeline metrics.
variables:
DEVGRID_API_KEY: {insert your api key}
pool:
vmImage: windows-latest
steps:
- script: |
echo "Download and Setup DevGrid CLI"
curl -L https://pkg.devgrid.io/latest/devgrid-latest-windows-x64.tar.gz --output devgrid-latest-windows-x64.tar.gz
echo "Extracting DevGrid CLI"
ls -la
tar -xvf devgrid-latest-windows-x64.tar.gz
mv windows/devgrid-cli /usr/bin/devgrid-cli
displayName: "Download and Setup DevGrid CLI"
- bash: |
echo "DevGrid CLI Version"
devgrid-cli version
displayName: "Check DevGrid CLI Version"
- bash: |
echo "DevGrid Sync Command"
devgrid-cli sync
displayName: "DevGrid Sync"
- script: |
devgrid-cli event \
-type="event-build" \
-entityShortId="{my_component_id}" \
-attributes='{"build_url":"$(Build.BuildUri)","build_id":"$(Build.BuildId)", "build_commit_sha":"$(Build.SourceVersion)",
"success":"true"}'
displayName: "Send Build Success Event to Devgrid"
condition: succeeded()
Experimental - Direct Azure DevOps Integration
Create PAT Token.
In order for DevGrid to connect to your AzureDevOps integration, you will need generate a Personal Access Token in your Azure DevOps portal. Microsoft Article on generating your PAT token here.
List of Scopes To add:
- Advanced Security (Read)
- Analytics (Read)
- Build (Read)
- Code (Read)
- Entitlements (Read)
- Environment (Read)
- Extension Data (Read)
- Extensions (Read)
- Graph (Read)
- Identities (Read)
- Member Entitlement Management (Read)
- Notifications (Read)
- Project and Team (Read)
- Pull Requests (Read)
- Release (Read)
- Symbols (Read)
- Task Groups (Read)
- Team Dashboard (Read)
- Test Management (Read)
- Wiki (Read)
- Work Items (Read)
Example Screen Below:

Updated about 1 year ago
