Pipelines and releases
Watch a Run as it happens, run a Pipeline with its parameters, approve what waits for you, and see what's deployed where. Then look further: how a Pipeline has been doing, which tests fail, the variable groups and agent pools behind it, the packages it publishes, and classic releases with what's ready to ship.
Pipelines
Each synced Project has Pipelines in the sidebar. Under it are the Pipelines you've starred as favourites, so the ones you watch are a click away. Click Pipelines itself to see them all.
The tabs along the top choose what's listed:
- All: every Pipeline, in its folders. A folder counts its Pipelines and says how many last failed; fold one away with its arrow. Filter Pipelines finds one by name.
- My runs: the Runs you started or that were run for you, newest first.
- Favourites: the Pipelines you've starred. Click the star at the start of a row to add or remove one.
- Waiting for me: Stages waiting for your approval, across the Project's Pipelines. The tab counts them.
- Environments, Library and Agent pools: see Environments, the Library and Agent pools below.
Click a Pipeline to open it. It has three tabs: Runs, its Runs with their result, number, branch, who they were for, when they were queued and how long they took (filter them by branch or result); Tests; and Health. The star beside its name makes it a favourite.
Pipelines need Build (Read & execute). With Read alone you can watch Runs but not start, cancel or approve them.
A Run
Click a Run to open it. Its header has the Pipeline's name, the Run's number and how it stands (Running, Succeeded, Failed, Partially succeeded, Canceled), and under it the branch, the commit, the reason it ran (continuous integration, a pull request, a schedule, by hand), who it was requested for, when it was queued and how long it has taken.
The Run has two tabs: Stages and logs, and Tests.
Stages, Jobs and Steps
On the left is the Run's timeline: its Stages, each Stage's Jobs and each Job's Steps, with how each went and how long it took. Fold a Stage or Job away with its arrow. Summary at the top shows the Run's overview: anything waiting for approval, its tests and coverage, and the commits and Work Items it brought. A Work Item opens beside it in a panel.
The log
- Click a Step to show its log on the right, with line numbers.
- To find something, type in the search box above the log. Matches are marked, the box says which of how many you're on, and ↑ and ↓ beside it go to the one before or after.
- While a Step is running, its log follows it as it prints. Live above the log says it's following the end; click it to stop and read back, and again to follow the end once more.
Whether a running log is followed is remembered for next time.
Cancel, retry and run again
- Cancel, while a Run is going, stops it.
- Retry failed jobs, on a Run that failed, runs again just the Jobs that failed.
- Run again queues a new Run of the same Pipeline, on the same branch with the same parameters and variables.
- Rerun stage shows beside a Stage of a finished Run that failed, was canceled or partially succeeded, and runs that Stage again.
The button at the end of the header opens the Run on the website. A build linked from a Work Item's Development section opens here as a Run.
Run a Pipeline
- Open the Pipeline and click Run pipeline.
- Choose the Branch to run.
- Set its Parameters. They're read from the Pipeline's YAML, including YAML templates it uses, even ones in other repositories, so each shows as it should: a list to choose from, a tick box, a number or text.
- Under Stages to run, untick any Stage to leave out of this Run.
- Change any Variables the Pipeline lets you set at queue time.
- Click Run. A message says it's queued, with the Run's number.
Approvals
When a Stage is waiting for you to approve it, a desktop notification says so, the tray and Dock count it, and it's listed under Waiting for me. On the Run, the Stage shows Waiting for approval, with the instructions the approvers were given and who can approve.
- Open the Run and click Approve or reject…, on the Summary or beside the waiting Stage.
- Read the instructions, and add a comment if you want.
- Click Approve to let the Stage go on, or Reject to stop it.
The dialog says how many approvals the Stage needs: when one approval lets it go on, yours is enough. An approval you can't give (you started the Run, and the check doesn't allow that) says why.
Environments
The Environments tab lists the Project's Environments with their description, who created them and when they last changed. It has two views: List and What's deployed. Which one shows is remembered.
Click an Environment to open it. It shows:
- Resources: the Kubernetes namespaces and virtual machines it deploys to.
- Deployments: the Runs that deployed to it, newest first. Each opens as a Run.
- Approvals and checks: what a Stage has to pass before it deploys here.
Make, change and delete an Environment
- New Environment makes one, with a name and a description; click Create.
- On an Environment, Edit (the pencil) renames it or changes its description, and Delete (the bin) deletes it, asking first.
Approvals for an Environment
An Environment's Approvals check is added, changed and removed here.
- Open the Environment and click Add approvals (or the Approvals check to change it).
- Under Approvers, Add a person or group. Remove one with its ✕.
- Choose Who must approve: any one of them, or any two, three or more of them.
- Set Times out after: how long a Stage waits before it fails.
- Tick Approvers may approve runs they started themselves if they may.
- Write Instructions for approvers: what to check first. They show to whoever approves.
- Click Add approvals (or Save, when you're changing it). To take the check away, use Remove the approvals on the Environment.
Other kinds of check (business hours, a query to Azure Monitor, a required template and so on) are listed with Configure on the website, and Other checks on the website opens the Environment there to add one.
What you can change depends on your role on the Environment: Administrator, User or Reader. Whatever your role doesn't allow is greyed out, and says why. A Personal Access Token needs Environment (Read & manage).
What's deployed
What's deployed, beside List on the Environments tab, has a row for each Pipeline that deploys, with the Run that's in each Environment it deploys to: the Run that landed there last, who asked for it, when it got there and its branch.
- A Pipeline's Environments are in the order its own Runs reach them, so staging comes before production.
- N behind on an Environment says it has an older Run than the one before it: how many newer Runs that one has had.
- A Run has landed once one of its deployment jobs there succeeded, so a smoke test failing afterwards doesn't hide it; the Run's mark shows it failed.
- A later Run that failed to get in, was canceled or is on its way shows under what's there.
- Nothing deployed yet means the Pipeline has only tried to deploy there.
- When an older Run is deployed again (a rollback), that's the one shown.
A Run opens as a Run, and an Environment's or a Pipeline's name opens it. Filter by Pipeline or Environment narrows the rows by either's name.
What it brought
Where a Pipeline's Run in an Environment replaced an earlier one, the cell has What it brought: the commits between the two Runs and the Work Items linked to them, newest first.
- A Work Item opens in ADO Local; a commit opens on the website.
- Copy as Markdown puts the list on the clipboard, to paste where what went out is written up.
- When the two Runs were built from different branches it says so, and Work Items it can't read are counted.
- After a rollback it reads What going back took out: the same commits and Work Items, which are no longer there.
What's deployed is read from Azure DevOps each time it's shown (up to each Environment's newest 300 deployments) and says when that was, which Environments have more, and what it couldn't read. It doesn't read itself again while you look, and nothing is kept. It covers one Pipeline's Runs at a time: what another Pipeline deployed to the same Environment isn't in it, and a classic release's Stages aren't either.
Pipeline health
A Pipeline's Health tab, beside Runs and Tests, shows how its completed Runs went over the last 14, 30 or 90 days. Choose the period at the top right. A sentence heads it, such as “5 of 11 Runs succeeded in the last 30 days (45%)”.
The three figures
- Succeeded: the share of the Runs that came to an outcome. A canceled Run isn't counted, and partially succeeded isn't succeeded.
- A Run takes: the middle one of the Runs that ran to the end, from starting to completing (a wait for an approval part-way is in it). It says whether that's slower or quicker than in the first half of the period, or that there are too few Runs to say (it wants three in each half).
- Waits to start: the middle wait from being queued to starting, with the longest and its Run, which opens if Azure DevOps still has it.
Below them
- The period day by day (for a fortnight) or week by week: each with a bar, how many Runs succeeded, failed, partially succeeded and were canceled, and how long one took.
- What started them: changes pushed, pull requests, a schedule, by hand. A pull request's Runs often fail for other reasons than the main branch's.
- For a Pipeline with more than one Stage, the Stages that fail most.
- The Steps that fail most (failures out of the times each ran) and the Steps that take longest each time, with their Stage and Job.
Health comes from Analytics, so a Personal Access Token needs Analytics (Read). It's read when opened and isn't kept for offline. Analytics is a few minutes behind the newest Runs and has none that are still going. For a Pipeline with more than 2,000 Runs in the period, the newest 2,000 are read, and it says how far back they go.
Test Results
A Run's Tests tab (and Tests on a classic release's Stage) shows every Test Result it published, as a tree: each Test Run, then its namespaces, folders, classes and files, then its tests in the order they ran. The tab counts what failed.
- Every branch of the tree starts shut, counting what failed and passed in it. Click one, or press →, to open it, or use Expand all and Collapse all.
- The chips for failed, not run, other and passed, and Find a test or class, open every branch with a match and leave out the rest.
- A Test Result shows its error message and stack trace, Azure DevOps' Flaky mark, and what it attached: screenshots (full size with a click), videos played in place, console output and logs inline, and anything else, such as a Playwright trace or an HTML report, to save or open.
File a Bug for a failure
Before you file one, a chosen test shows the Bugs for this test: the ones on this Test Result, and the ones on the test's other Test Results over the last 60 days, each with its State and who has it.
- Add this failure, when the test already has an open Bug, puts that Bug on this Test Result and links the Run to it, so the same failure isn't filed twice. A resolved Bug counts as open and stays resolved; reactivating it is yours to do. A closed Bug is listed but not added to.
- Create Bug makes a Bug named after the test, with the error, stack trace and Run in its Repro Steps, the screenshot attached, the Run linked (it shows under Development) and the Bug put on the Test Result.
A test that passed says when a Bug is still open for it. Bugs that can't be read (deleted, or in an Area you can't see) are counted, so a test with a Bug doesn't look as if it has none. Create Bug waits until the Bugs have been looked for.
Test Results are read when the tab opens and aren't kept for offline.
Test history
The chosen Test Result has a History: how that test did in its Pipeline's Runs over the last 90 days, the newest 30 as a strip of marks, oldest first, with the Run you're on outlined. A failure stands taller than a pass, and a Run the test wasn't run in is a low outline.
Above the strip is what to make of it:
- New failure: it passed in every Run before.
- Failing for N Runs in a row, since …: it hasn't passed for a while.
- Unsteady: it fails on and off.
- Otherwise, how many of its Runs it failed in.
Rest the pointer on a mark to see its Run, outcome, time and branch; click it to open that Run's Tests. The strip is one Tab stop, and ← and → go along it. A test that ran more than once in a Run counts as its worst result there, so one that failed and then passed on a retry counts as failed. With older Runs out of sight, a long failure is “at least” so many Runs.
A Pipeline's Tests tab
Each Pipeline has Tests beside its Runs: over the last 14, 30 or 90 days, the tests that fail most (how many times out of how many, and the share) and the ones that take longest each time they run. A row opens to that test's history.
A test that fails every time and one that fails now and then are told apart by that share and by their histories. Nothing here decides a test is flaky beyond Azure DevOps' own Flaky mark, which the rows count. It counts Runs on every branch, pull requests' included.
Test history and the Tests tab come from Analytics, so a token needs Analytics (Read). Analytics is a few minutes behind the newest Run (the Run you're on is added from its own Test Results). Nothing is kept on this computer, and a classic release's Stage has no history.
The Library
The Library tab lists the Project's variable groups. Find a variable group looks through a group's name, its description and its variables' names (never their values). Choose a group to see its variables and their values.
- A secret says only that it's secret: Azure DevOps doesn't give its value.
- A group whose values come from an Azure Key Vault says so, and all its variables are secret.
Compare two variable groups
- Choose the first group.
- In Compare with, choose the other.
- Read the sentence that adds it up, for example “1 only in staging, 1 only in production, 2 differ, 1 is secret in only one and 1 is the same.”
- Below it, a row for every variable either has, matched by name whatever its case: which are only in one, which differ (and when it's only by spaces at the start or end, which don't show), which are the same, which are secret in only one, and which can't be compared because they're secret in both.
It starts with Only what isn't the same; click it to see every variable. Typing to find another group doesn't change the one you've chosen.
The Library is read from Azure DevOps each time it's shown and is never kept on this computer. It's for reading: variable groups are changed in Azure DevOps. Secure files aren't shown. A Personal Access Token needs Variable Groups (Read).
Agent pools
The Agent pools tab lists the pools the Project's Pipelines can run on, its own before the Microsoft-hosted ones. Use it to see why Runs are waiting to start. Each pool says how it stands, such as “2 of 3 online · 1 waiting”, and one with jobs waiting and no agent online and enabled says nothing can run.
Choose a pool to see:
- A sentence for it, such as “Its one agent is offline, so nothing can run. 2 jobs are waiting, the longest for 17h 55m.” When a job waits while an agent is idle, it says the job may be asking for something the agent hasn't.
- Agents: each one's state (running, idle, offline or disabled), the job it's running or last ran, its version and operating system.
- Jobs: those waiting (the longest first), those running and on which agent, then the last ten to finish, with how each went and how long it waited for an agent.
A pool belongs to the organization, so a job of a Run in another Project says which; a job of a Run in a Project you sync opens the Run. A Microsoft-hosted pool shows its jobs but no agents, since Azure DevOps makes those as they're needed.
Pools are read from Azure DevOps each time the tab is shown, and again with the refresh button; what's said is as it stood then. Nothing is kept on this computer. It's for reading: agents are enabled, disabled and removed in Azure DevOps. A Personal Access Token needs Agent Pools (Read).
Artifacts
Each Project in the sidebar has Artifacts: its feeds, the Project's own before the organization's. When there's more than one, choose a feed from the menu at the top. Artifacts opens on the feed you last showed in that Project, and it's under Go to in the command palette.
Find a package
- The feed lists the packages published to it, each with its kind (NuGet, npm, Maven, Python, Universal or Cargo), its latest version and when that was published.
- Find a package looks for part of a name in Azure DevOps.
- Every kind narrows the list to one kind.
- From upstream sources too adds the packages the feed has saved from nuget.org, npmjs.com and the like. A name not found among the feed's own says to look there.
- A hundred show at a time; Show more packages adds the next hundred. If a page can't be read, the list says so, and Show more packages asks again.
A package
Choose a package to see:
- The command that installs its latest version, with Copy:
npm install,dotnet add package,pip install,cargo add,az artifacts universal download, or the dependency to add for Maven. A name or a Project with spaces or other characters a shell would act on is quoted. - Its Versions, the newest first: which is the latest, the feed views it's been promoted to (@Prerelease, @Release), whether it's unlisted or deprecated and why, and the upstream source it came from. The button at the end of a row copies how to install that version.
- What the latest version needs: its dependencies.
The button beside the package's name opens it in Azure DevOps.
Artifacts is read from Azure DevOps each time it's shown and never kept on this computer. It's for reading: packages are published, promoted, unlisted and deleted with their own tools or in Azure DevOps. A Personal Access Token needs Packaging (Read).
Classic releases
Each Project's Releases in the sidebar lists its classic release pipelines, by folder, with your favourites first. Each row has its latest release, how each of its Stages stands, its readiness and when it was created. Star one to make it a favourite.
Click a release pipeline to see its releases, newest first, with their Stages and readiness. Click a release to see it: its pipeline, who created it and why, its description, its artifacts and their versions, the releases before and after it, and each Stage with its approvals, deployment steps and task logs.
Create a release
- Open a release pipeline and click Create release.
- Under Artifacts, choose each artifact's version: its builds or commits, newest first.
- Under Stages, ticked Stages deploy by themselves, as the release pipeline's triggers say. Untick one to deploy it by hand in this release.
- Write a Description, and click Create.
Variables and other choices are as the release pipeline sets them; change those on the website.
Act on a release
On a release, each of these asks for a comment, and goes straight to Azure DevOps:
- Approve or reject an approval waiting for you. Before a Stage deploys, tick Defer the deployment until and pick a date and time, then Approve and defer; the Stage then says when it's deferred until.
- Approve all, when several approvals wait for you, approves every one at once.
- Deploy or Redeploy a Stage.
- Cancel deployment stops a Stage that's deploying.
- Where a Stage waits at a manual intervention, read its instructions and resume or reject the deployment.
- Abandon abandons the whole release.
What you may do is asked of Azure DevOps first; an action you can't take is greyed out and says why. Release approvals waiting for you count on the tray and notify you like a Pipeline's.
A running task's log shows once the task finishes. Classic releases don't send their logs as they're written.
A token needs Release (Read) to read releases, and Release (Read, write, execute & manage) to act on them.
Release readiness
Each release pipeline marks its newest release whose PBIs are all done: Ready: Release-28, say. That means every PBI linked to the commits and pull requests since the last release that reached the final Stage (such as Production) is done, with Tasks rolled up to their PBI, the Bugs tied to them are closed, and their tests have passed. A release that isn't ready says why, such as “Not ready: 2 PBIs open”.
The detail panel
Select a release in a release pipeline's list to open its detail panel beside it. It shows:
- A sentence on whether it's ready, and the Work Items still open.
- Its PBIs since the release before, each done or not, with their Tasks folded underneath.
- Tests: each Test Case's latest result in each configuration, across every Test Plan. Failed, Blocked or Not run holds the release back; Not applicable doesn't. Run beside one opens it in the Test Runner.
- Bugs tied to the release's Tasks and PBIs: one that isn't closed hasn't been tested, so the release isn't ready.
- Other Work Items, builds, commits and pull requests, and the Stages.
A release whose commits aren't linked to Work Items says so, rather than looking ready. The panel's buttons open the release, open it in the browser, and close the panel.
Compare releases and write release notes
- Open a release pipeline and click Compare…, or Compare with… in a release's detail panel.
- Choose From and To. From starts at the release last in Production.
- Read the totals: PBIs completed, Bugs closed, PBIs not completed and Bugs still open.
Below, Completed lists the PBIs (grouped by their Feature) with their Tasks and tests, then Bugs closed; Contributed but not completed lists what was worked on in those releases but isn't done (it's in the build without being finished), then Bugs still open and anything not under a PBI.
Release notes
- Click Release notes… on the comparison, or in a release's detail panel.
- Set the Title and Date, and write an Introduction if you want one.
- Under Include, tick what to put in: Not yet complete (PBIs worked on but not done, and Bugs still open), Work Item IDs, Links to Azure DevOps, Tasks under each PBI, and Tests (how each PBI's and Bug's tests stand).
- Check the preview: Formatted, Markdown or Plain text.
- Copy as Markdown, or save as Markdown…, Plain text… or PDF….