- Pipelines list is retrieved using
GET _apis/pipelines(and falls back toGET _apis/build/definitionsif needed). - For each selected pipeline ID, the widget queries the latest completed build via
GET _apis/build/builds?definitions={id}&$top=1&statusFilter=completed&queryOrder=finishTimeDescending. - Code coverage is read from
GET _apis/test/codecoverage?buildId={buildId}&flags=7and the "Lines" coverage stats are aggregated. - Calls are authenticated using the extension SDK access token.
This extension is pure static HTML/JS and bundles the Azure DevOps Extension SDK locally (no external CDN dependency). No build step is required.
- Update
vss-extension.jsonwith yourpublisherand repository link. - Install
tfx-cliif needed:npm i -g tfx-cli - Create a VSIX:
tfx extension create --manifest-globs vss-extension.json - Publish to your publisher:
tfx extension publish --publisher <publisher> - Install the extension into your Azure DevOps organization and add the widget to a dashboard.