Skip to content
Get the latest build for your https://devops.azure.com pipeline.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
.gitignore
ArtifactResourceList.cs
BuildResult.cs
LICENSE
README.md
RedirectToLatestDevOpsBuild.cs
host.json
latestbuild.csproj

README.md

Latest build

This is a simple app (Azure function app) that make a request to the https://devops.azure.com to get the latest build for the given project, build definition and artifact name.

It does two API calls. The first to get list of latest builds and the second to get the artifact download url for the latest build. Finally, it redirects you to the download url of the given artifact.

The build needs to be a publicly available.

The artifactName can be either full or partial ending with *. In that case, only the beginning of the name has to match.

Examples:

  • full: sourcekit-lsp-vscode-dev.vsix
  • partial: sourcekit-lsp-vscode-*

In case it fails because of wrong request (wrong company/project/build definition/artifact name) it returns 412 together with json response:

{ "isOk": false, "error": "<error description>" }

You can use it in the following fashion:

https://latestbuild.azurewebsites.net/api/v1/devops/{company}/{project}/{buildDefinitionId}/{artifactName}

Example:

https://latestbuild.azurewebsites.net/api/v1/devops/pvasek/sourcekit-lsp-vscode-extension/1/sourcekit-lsp-vscode-dev.vsix
You can’t perform that action at this time.