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
3
votes
3 answers

How to escape backslashes in variable of File content replacer teamcity

For example if I need replace some string to %teamcity.agent.work.dir%\\nd_r\\bin\\isf. But if variable teamcity.agent.work.dir is C:\BuildAgent\work\, it removes all backslashes and replace text to C:BuildAgentwork\nd_r\bin\isf. How I can escape…
Mois
  • 107
  • 8
3
votes
3 answers

How do I set the "Version control path to custom assemblies" for custom MSBuild tasks

With TFS 2010 build controllers/agents there is the option to set a version control path to custom assemblies that will be available on all build agents. The documentation states that this works for custom workflow activities as well as custom…
Daniel
  • 61
  • 1
  • 6
3
votes
3 answers

Teamcity build agent in disconnected state

I am running teamcity on Linux server, and it was working completely fine. Once I reboot the server machine and it stopped working. I managed to start the teamcity server using runAll.sh command, but the build agent stays in "disconnected" state.…
Narain Mittal
  • 1,150
  • 11
  • 25
2
votes
2 answers

Team City - Adding a new build agent on the build server

I am trying to add a new build agent on the build server (team city 6.5.5) - I was able to add a new agent but now the first one is disconnected and second one is running, I think there is some problem with the ownport & ServerURL that I have…
user1022521
  • 509
  • 3
  • 9
  • 16
2
votes
1 answer

Unattended TFS Build Controller/Agent installation

I´m scripting our build server dependencies and I'm having a little trouble getting the TFS 2010 build service configured unattended. This is what I run from my script. y:\Visual Studio Team Foundation Server 2010\TFS-x64\setup.exe /q /UnattendFile…
jaspernygaard
  • 3,098
  • 5
  • 35
  • 52
2
votes
0 answers

Setting up TeamCity on AWS Ec2

I have set up a Server and a BuildAgent on Amazon Ec2. I have configured the build agent to sit in the /home/ec2-user/build-agent directory (will this cause problems due to permissions?) I then configured the build agent to point to the server…
Dermot
  • 65
  • 1
  • 7
2
votes
1 answer

TFS 2010 build agent priority

I have a single build controller with many build agents strewn across many build servers. Some build servers are more powerful than others (better CPU, more RAM, etc.). Without resorting to using "tags filter" for agent settings per build, how can i…
LordHits
  • 5,054
  • 3
  • 38
  • 51
2
votes
2 answers

TFS Build Agent Stopped Running

The other evening we attempted to migrate our database to a different server. This ended up getting reversed and everything is now back up and running as expected except for the Builds. I have removed/re-installed the build agent on the server and…
andyb952
  • 1,931
  • 11
  • 25
2
votes
2 answers

Running docker inside Docker Windows Container for DevOps Buildagent

Im working with Microsoft Dynamics 365 Business Central. (ERP Software). Im attempting to create build agents on my local server to set up Continious Integration with my projects. On the buildserver i am running Docker Enterprise on Windows…
2
votes
1 answer

Azure DevOps passing Dynamically assigned variables between build hosts

I'm using Azure DevOps on a vs2017-win2016 build agent to provision some infrastructure using Terraform. What I want to know is it possible to pass the Terraform Output of a hosts dynamically assigned IP address to a 2nd Job running a different…
stravze
  • 137
  • 3
  • 13
2
votes
4 answers

Duplicate key in provisioning profile causes build failure: error MSB4018

My Xamarin build tasks are failing in my Azure Dev Ops pipeline with: error MSB4018: The "DetectSigningIdentity" task failed unexpectedly. error MSB4018: System.ArgumentException: An item with the same key has already been added. Key:…
2
votes
1 answer

Failed to find files to create packages matching \BuildArtifacts\_Build\BranchName.nupkg under \BuildAgent\work\randomnumbers

I am having the worse time trying to figure out why branches have problems to build in TeamCity. Branch A (master) is building correctly but the branch B (child) after the commit is not. I've moved two files and made changes only in cshtml and js…
2
votes
1 answer

How do I resolve build error: the reference assemblies for framework ".NETPortable,Version=v5.0" were not found using CI Build Tools

I've been having some troubles with my TeamCity Build Agent recently. I started running out of space on the build machine so I opted to remove some old instances of Visual Studio (2013) and also to switch to using the Visual Studio 2017 Build Tools…
The Senator
  • 5,181
  • 2
  • 34
  • 49
2
votes
2 answers

Failed to start AzureStorageEmulator on VSTS Hosted VS2017 Agent

We have .Net project build definition on VSTS and it's using Azure Storage Emulator for running tests. And we want to use Hosted 2017 agents for the build definition. I saw this question (Azure SDK not available on Hosted VS2017 VSTS Build Agent)…
2
votes
2 answers

What is the Build Drop Location environment variable name for PowerShell in TFS 2015/2017

In previous versions of TFS (before 2015), there was a build environment variable for PowerShell called: TF_BUILD_DROPLOCATION, which gave the The location of the drop: https://msdn.microsoft.com/library/hh850448%28v=vs.120%29.aspx. I can't find the…
Amir M
  • 508
  • 1
  • 8
  • 28