Triggering Azure DevOps builds based on changes to sub folders

I have a Visual Studio solution with multiple projects, each project is an individual microservice. It is very convenient to the development team to have all the services in the same solution, and...

Error when trying to set pipeline pool to Default agent pool using azure-pipelines.yml

I followed the documentation for setting pool via Pipelines Schema Docs and set it as such pool: Default. This should direct pipelines to use the Default pool: However, I keep getting this...

Failed to deploy web package to IIS website. By the Self-hosted Windows agent

Failed to deploy web package to IIS website I have created one ASP.NET Core application and Azure DevOps continuous integration (CI) and continuous delivery (CD) pipeline. I have created and...

Azure DevOps YAML build pipeline stuck on self-hosted agent

I have an issue with running a YAML based build pipeline on self-hosted agents. After the build is triggered, it gets stuck on Preparing an agent for the job - Waiting for the request to be...

Azure DevOps - Dynamically evaluate demand name

I am looking for a way to set in Azure DevOps .yaml file dynamic demand name. Right now we have a few self-hosted build agents that are selected by Azure DevOps services randomly but sometimes we...

Azure DevOps Services - self hosted agents have gone Offline

When starting up the windows service for the agent following error is logged in the event log: Failed to create session. VS30063: You are not authorized to access https://dev.azure.com. (Level:...

Deploy artifacts to physical machine with Azure Pipelines

I have a project that is built with an azure pipeline, the artifacts are sent to both the File Share and Azure DevOps. A self hosted agent is currently used for the pipeline that builds my...

Gitversion rolled back the version number for my NuGet packages in AzureDevops build pipeline

The problem: Until two days ago the version generated by GitVersion worked correctly but now suddenly it rolled from 1.421 to 1.407. My Environment: Azure DevOps: Multiple version of Azure...

Receiving "fatal: not a git repository (or any of the parent directories): .git" while using pat to push code into bitbucket using azure powershell

I am writing an Azure PowerShell script that will consume the JSON file which has the location of all my SQL scripts and Migrationflag column (which holds to execute/to be executed) and execute...

Execute Azure Devops job on a pool based on conditional parameter

I am trying to execute an Azure Devops Job on a specific pool based on a condition. The goal is to switch between self-hosted agent and microsoft agent. Here is the configuration: parameters: ...

How can I set a variable based on which agent is running an Azure DevOps build pipeline?

We have multiple self-hosted build agents. One step of one of our build pipelines is to copy some artifacts to a network drive. We do this via a PowerShell script, which takes the destination as a...

How to configure CI builds from multiple release branches using YAML builds in Azure DevOps Server 2019?

We have multiple release branches in our product (currently this is unavoidable). For this question, suppose we have two: master release/r-858 Both have classic CI builds. Now I want to replace...

How to use vmImage on pipeline using Azure DevOps Server?

Following the documentation here, I am trying to use vmImage: 'ubuntu-latest' in Azure Devops Server. How can I use vmImage: 'ubuntu-latest' in my Azure DevPps Server?

Azure DevOps YAML self hosted agent pipeline build is stuck at locating self-agent

Action: I tried to configure and run a simple c++ azure pipeline on a self-hosted windows computer. I'm pretty new to all this. I ran the script below. Expected: to see build task, display task...

Avoid git clean with Azure Devops self-hosted Build Agent

I have a YAML build script in an Azure hosted git repository which gets triggered across 7 build agents running on a local VM. Every time this runs, the build performs a git clean which takes a...

Not able to render Code Coverage HTML results in the "Code Coverage" tab in Azure DevOps

I have a classic build pipeline in Azure DevOps that builds and run tests for a .Net Core 3.1 app. I am using self-hosted build agents running Windows Server 2019 OS Below is the pipeline...

Unable to locate executable file: 'bash' error for a simple script on Azure Devops Pipeline

I get the following error if I run my azure devops pipeline: ##[error]Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a...

Azure Devops - not able to set variable in Powershell

I have an Azure Devops release pipeline (using the Classic Editor rather than yaml) and am having trouble setting a variable in an inline powershell script. The relevant part of the script is...

Azure DevOps YAML build fail when running container jobs on self hosted agent

I'm trying to run a container job on my self hosted agent to read a container image from my ACR. When you use a Microsoft hosted agent this code works: pool: vmImage: 'ubuntu-18.04' container: ...

Azure Devops Self hosted Agent Docker Container Connectivity Issues

I already use my computer as a self-hosted agent connected to a azure pipeline workflow. I'm trying to now run a self-hosted agent in docker for later use on a company own windows 2019 server....

Azure DevOps hosted agent pipeline "Unable to locate executable file: 'Powershell'

The Azure DevOps deployment agent (self-hosted on one of our Windows VMs) decided to stop working out of the blue, throwing this error when executing the IIS Web App Deploy step: Error: Unable to...

Azure Pipeline runs not automatically deleting

We have two build YAML pipelines to run tests on TFS one for front-end and one for back-end tests. We use two self-hosted windows agents to run these builds and we are on Azure DevOps Server 2020....

Azure DevOps - how to make artifacts retention policy working when publishing to file share

I have two tasks at end of my build pipeline - task: [email protected] inputs: rootFolderOrFile: '$(Build.BinariesDirectory)' includeRootFolder: false archiveType:...

Is it better to install dotnet SDK on self-hosted Azure DevOps agent, or add the [email protected] task in the build pipeline?

I have configured a self-hosted Linux agent based on Ubuntu 20.04 running in a Docker container. It reports in to the agent pool and runs correctly. I'll be running the agents in AWS Fargate. My...

How to control work folder for Azure DevOps pipeline?

Normally, if you are using a self-hosted Azure agent, it automatically selects target folders for you (I assume based on pipeline name), underneath the work folder... so for...

##[error]No agent found in pool Agent which satisfies the specified demands: maven, Agent.Version -gtVersion 2.163.1

I am trying to have build and release pipeline on Azure DevOps services for the same I am using self hosted Linux agent runnig on linuxVM hosted in Azure. Earlier the same pipeline was running on...

Azure Pipeline git clone cannot handle spaces in repo URL

Using Azure Pipelines, I am trying to do "git clone --mirror" on a self-hosted Windows agent. It works if I use bash on a MS-hosted agent. But my self-hosted agent doesn't have bash right now, so...

[email protected] failed in azure devops pipeline

i have created build nd release pipeline which is yaml based in azure devops services i am using self host linux vm as a agent to run my pipeline. When the pipeline runs it complete all stage how...

azure devops self hosted container agent with custom image

We have source code with combination of .net 4.0 and C++ (CLI C++). To build this code we use visual studio 2015 and visual studio 2010 both at the same time. To build the C++ source code we using...

VSTS Self-hosted Build Agent Xamarin build error

Trying to get our CI to build our Xamarin.Android apps, I have made a Task for this, and it builds fine the first 2 or 3 times but after that, it constantly throws errors like the one...