Example badges:
This service is implemented as a serverless edge function using Netlify Edge Functions. It fetchs the last build info (sourceBranch and version) given buildNumber=*alpha*
or tagFilters=stable
from Azure DevOps REST API. A second call was made to get the build badge. Azure API Endpoints used are below:
- Import your project from a GitHub repository
- Create an Azure PAT with the Build (Read) permission.
- Add an environment variable in Netlify site settings named
AZURE_PAT
with the PAT value above. - The CI/CD should work by default.
-
GitVersion.Tool
is installed as a dotnet tool -
Run the gitversion dotnet CLI command in pipelines.
dotnet gitversion /updateassemblyinfo /output buildserver
This task will update the build number so
alpha
andbeta
can be searched with wildcards. -
Stable builds doesn't have a searchable keyword. An alternative is to add a stable tag to the build.
- Alpha
![Project.Lib](https://azure-badge-proxy.netlify.app/fetch-azure-badge/org/project/1?name=Project.Lib&buildNumber=*alpha*)
- Beta
![Project.Lib](https://azure-badge-proxy.netlify.app/fetch-azure-badge/org/project/1?name=Project.Lib&buildNumber=*beta*)
- Stable
![Project.Lib](https://azure-badge-proxy.netlify.app/fetch-azure-badge/org/project/1?name=Project.Lib&tagFilters=stable)