Questions tagged [azure-devops-self-hosted-agent]

185 questions
5
votes
1 answer

How to uninstall or remove configuration of a deployment pool or deployment agent

I am using Azure DevOps Server (TFS), and I register deployment pool agents in my test and production servers, now iIneed to uninstall or remove the configuration on my server and in my UI how can I do that there are a script to run or just delete…
5
votes
4 answers

Self Hosted Agent not showing up under Agent pool dropdown

I have multiple project repositories in AzureDevOps and I created a self-hosted agent into our build server. I have defined CICD pipelines for few repositories and it works fine using self-hosted agent. But when I am trying to setup a CICD pipeline…
5
votes
1 answer

Failed to create Release artifact directory (Access to the path 'C:\agent\_work\r1\a\NUL' is denied.)

Lately we face an annoying problem with our build agents (2 seperately installed machines running Windows 2016) with the VSTS build agent installed. When we run del "\\?\%CD%\nul" (see Super User) it works for a couple of builds and then appears…
Luuk
  • 1,899
  • 1
  • 21
  • 42
5
votes
2 answers

TFS On-Prem Build Agent Using Old Version Of NuGet.exe

We are hosting TFS 2017 Update 2 on-prem, and using on-prem build agents. The latest version of NuGet.exe is currently 4.3.0, but our build agents always default to using v4.0.0. How can I get our build agents to use the latest version of…
5
votes
1 answer

Azure private build agent : No agent could be found with the following capabilities: npm, azureps

I am trying to use a local server as a build agent to build a project. The server already has VS 2015, VS 2017 Node 6,7,8 via NVM NPM 4,5,6 via NVM I can build the project locally via npm build or yarn build. I have downloaded and configured…
4
votes
1 answer

How to run PowerShell task with admin privileges in Azure Devops pipeline

I am trying to create RamDisk in DevOps agent servers using PowerShell task from Pipeline. The script can create the Ramdisk rive but unable to format and mount it. Its giving error that it needs elevated prompt. How I can run PowerShell task with…
3
votes
2 answers

Azure DevOps Pipeline: Tests that pass locally fail on the pipeline

Our team is trying to implement Azure DevOps pipeline but we are having some issues. For background, we are running the tests on our self-hosted windows server. We got the front-end tests to all work but now we are having issues getting the backend…
3
votes
3 answers

In an Azure DevOps release pipeline how do you deploy to multiple VMs a deployment group with different target folders

I started out with a release pipeline setup in azure DevOps to deploy a windows service to a deployment group which had only a single VM with an agent set up. I have a variable set in the pipeline for the deployment folder. I'm now trying to expand…
Twisted
  • 2,334
  • 1
  • 24
  • 43
3
votes
1 answer

create azure devops windows self hosted agent remotely

Need to create azure devops windows self-hosted agents programmatically (Need to install Remotely for the existing VM). I have PS script and it is working well if i run it (as admin) inside the virtual machine and agent is getting installed…
3
votes
1 answer

How to execute pipeline on self-hosted build agent as non-root user

I have built self-hosted ubuntu agents running in docker. All works fine, build agent is working etc. except everything in pipeline steps is being executed as root instead of non-root user. E.g. When I try to execute "npm ci" and I look at my…
novak100
  • 703
  • 1
  • 8
  • 17
3
votes
1 answer

SSIS Project Fails To Build On Self Hosted Agent

I've seen other issues documented regarding SSIS project build failures but nothing that fits my scenario. I am attempting to build an SSIS project (.dtproj) on a self hosted agent. The project builds fine in Visual Studio 2019 and also on Azure…
3
votes
0 answers

Multi jobs failing SonarQube analysis and MsBuild in Azure DevOps build pipeline

in an Azure DevOps build pipeline, I would like to run a MsBuild task in an Azure hosted agent and a sonar analysis task in a self-hosted agent. I understand that I need to pass artifacts from a job to another. I try to use Publish and Download…
3
votes
1 answer

Gradle Daemon being killed in "Finalize Job" step

I've got a "Build" pipeline that runs gradlew build on my java code and then just exports the jar as an artifact. It is currently running on a self hosted agent as I was hoping this will help speed up the compilation. I noticed that at the start of…
3
votes
1 answer

Running maintenance on self-hosted Azure DevOps agents

I have several self-hosted Azure DevOps agents (each installed on a dedicated on-prem server) and I need to perform reoccurring maintenance on them (i.e. patching, etc.). Is there's a good way to define those maintenance windows within Azure DevOps…
Ivan
  • 33
  • 1
  • 4
3
votes
0 answers

How do I resolve a failure to start service to run private build agent on Azure running Linux VM

I have installed and run interactively a private build agent for Azure DevOps on Linux. However, when attempting to follow documentation to setup as a service it's failing to run. It usually completes the install successfully. But, starting the…
1
2 3
12 13