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

291 questions
12
votes
2 answers

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…
10
votes
4 answers

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 error: Could not find a pool with name Default. The pool…
9
votes
2 answers

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…
6
votes
3 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…
6
votes
2 answers

How to see the Predefined Variables in Azure Devops

I want to see the values that is path of predefined variable like for $(System.DefaultWorkingDirectory) i want to see value stored in it. I am unable to find this variable value so where can i find it in Azure devops. In simple words, how could i…
6
votes
1 answer

Can we set a self hosted agent to several organizations?

Is it possible to create a self-hosted agent and assign it to several organizations on azure devops? Thanks
user2212365
  • 95
  • 2
  • 9
6
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,959
  • 1
  • 21
  • 43
6
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…
6
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…
5
votes
1 answer

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?
5
votes
4 answers

Install Python to Self-hosted Windows build agent

I have installed Windows agent and I need to be able run Python scripts. I know I need to install Python, but I have no idea how. I added Python files from standard installation to $AGENT_TOOLSDIRECTORY/ Python/ 3.8.2/ …
5
votes
2 answers

How do I reconfigure Azure DevOps agent on server (windows OS)?

Agent which was configured to run as service earlier needs to be reconfigured to run interactively. When I am trying to run agent's config.cmd as administrator to reconfigure the agent then a blank window in command prompt opens and gets closed by…
5
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…
5
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…
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…
1
2 3
19 20