Questions tagged [build-agent]

Automated Builds using the Team Foundation Server, executed on TFS build agents.

Questions related to TFS build agents, how to configure them, how to select them for builds.

184 questions
7
votes
1 answer

Where is $(System.DefaultWorkingDirectory) set for builds in TFS2015?

I'm trying to modify the value of this variable as it currently points to the source folder of whatever build gets run on the agent instead of the root of the build. Does anyone know where I can modify this variable? I've looked at the agent's…
Moo
  • 85
  • 1
  • 1
  • 6
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
1 answer

How to determine if MSBUILD Arguments were executed for TFS Build Definition

I am using Team Foundation Service 2012, with a build controller hosted internally so I can deploy apps to our web servers. I setup the Build Definition, and am using the my Debug configuration, and have supplied the following MSBUILD…
ios85
  • 2,104
  • 7
  • 37
  • 55
5
votes
2 answers

TFS 2010 API: Queue builds synchronously and get the state of each queued build: "Run On Agent (waiting for build agent)"

Is it possible to queue builds synchronously? I tried something like this: CodeActivity: [BuildActivity(HostEnvironmentOption.Agent)] public sealed class QueueNewBuild : CodeActivity { // The Team Project that the build definition…
Rookian
  • 19,841
  • 28
  • 110
  • 180
5
votes
1 answer

Delete old self-hosted VSTS build agent _work folders

We have a self-hosted TFS build agent which has run out of space so I would like to delete as many of the folders under the agent\_work and agent_dply\_work folders as possible, where they are > 1 month old. Is this safe to do? I have found this…
Matt W
  • 11,753
  • 25
  • 118
  • 215
5
votes
2 answers

How to build setup project from .vdproj in Azure DevOps?

I have recently upgraded some of our windows application to VS2019 and created the setup project using VSInstallerProject extension in VS2019 . What I noticed is setup is not getting created when the Release pipeline is run , but I need the msi (or…
Raq
  • 433
  • 1
  • 7
  • 20
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
1 answer

Possible to mix VS 2019 build with TFS 2017 on Build Agent?

We want to migrate from VS 2017 to VS 2019. We are still on TFS 2017 and want to stay there for now. I set up the build infrastructure a long time ago, so I am not certain anymore what the role of VS on the build agent is.. I certainly sometimes use…
Andreas Reiff
  • 7,961
  • 10
  • 50
  • 104
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
2 answers

What do I need to install a Visual Studio 2010 (sln)-compatible Build Agent in TeamCity?

I seem to be unable to install a build agent on our TeamCity 5.1.2 build server that is compatible with a VS2010 (sln) build configuration. Under "Build Runners", the following runners are listed: Ant: Runner for Ant build.xml files Duplicates…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
4
votes
2 answers

TFS 2010: Wrong Build Agent is chosen

I have two configured Build Agents on one Controller: Default Agent Default Agent1 I defined a build definition with the following Agent Settings: Maximum Agent Execution Time: 00:00:00 Maximum Agent Reservation Wait Time: 04:00:00 Name…
Rookian
  • 19,841
  • 28
  • 110
  • 180
4
votes
1 answer

Xamarin deploys old code when building from PC

I have a really weird Xamarin.Forms bug I haven't seen before: When I build and deploy to simulator or device from Visual Studio 2017 on my PC the result is not aligned with the source code. What I see is some older build. If I build from the same…
Jonas Rembratt
  • 1,550
  • 3
  • 17
  • 39
4
votes
1 answer

The VSTS\TFS 2017 Release definition fails to create Release artifact directory at 'C:\Agents\DA_CID22\r1\a'

Lately I have been facing this error for one of my release definition and I am not able to figure it out why is this happening. I tried manually deleting the folders inside the r1 directory but it fails to delete the 'a' folder i.e. artifact…
4
votes
2 answers

VSTS Microsoft-Hosted Agent: Virtual Machine size

According to https://github.com/MicrosoftDocs/vsts-docs/blob/master/docs/pipelines/agents/hosted.md the virtual machine size of the Microsoft-Hosted Agent is: Currently utilizing Microsoft Azure general purpose virtual machine sizes…
4
votes
2 answers

Location of EDITBIN in Microsoft-hosted agents

How do I find the location of the EDITBIN on a Microsoft-hosted agent? I'm trying to use it to set SWAPRUN for the output DLLs of a C# project. For a local build, I use $(DevEnvDir)\..\..\VC\Tools\MSVC\14.14.26428\bin\Hostx86\x86\editbin. However,…
Edward Brey
  • 40,302
  • 20
  • 199
  • 253
1
2
3
12 13