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
2
votes
1 answer

TFS 2010 Build Agent DLL References outside branch

We've got a project in source control: $/Project/Trunk/Project.sln most of the projects live under the trunk $/Project/Trunk/Website $/Project/Trunk/BLL etc. The problem is, they all reference DLLs stored in $/Project/Common When I try to build…
Basic
  • 26,321
  • 24
  • 115
  • 201
2
votes
2 answers

TFS 2015 API remove agent from pool with PowerShell

I'm working on removing an agent from a pool temporarily, install new software on the buildserver the agent is on, test that it works, and then add the agent to the pool again. I would like to do that programmatically, either with PowerShell or if…
Setorica
  • 422
  • 4
  • 12
2
votes
1 answer

Using multiple build agents in TFS 2010

In my TFS2010 environment, I have 2 machines as dedicated build agents. I was expecting that once these build agents were registered, if I queue a new build, TFS would wait for the first free agent and assign that agent to the build, but if I queue…
VaticanUK
  • 1,127
  • 1
  • 9
  • 24
2
votes
1 answer

TeamCity MSBuild agent: Agent has unregistered

We've had a stable TeamCity install (version 9.0.3 (build 32334)) for some months. It has a single build agent, MSBuild, which is on the same box as TC. Now, without changing any of the configuration the build agent is showing as Disconnected with…
Badgerspot
  • 2,301
  • 3
  • 28
  • 42
2
votes
1 answer

TFS Build Agent skipping all tests

I've set up a build controller and build agent for my TFS 2012. I have a .NET 4.0 project with coded UI tests that I would like to run there. I set the build configuration to run with VS Test Runner. The problem is that the test runner skipping all…
Orad SA
  • 1,885
  • 5
  • 16
  • 16
2
votes
1 answer

How to run executable file after TFS Build

My task is: after TFS build 1) On a server X stop file Example.exe 2) Copy files from Drop Location into server X 3) Run a brand-new version of Example.exe on a server X I'm updating DefaultTemplate.xaml in TFS 2012, Visual Studio 2012. I'm entering…
1
vote
1 answer

Why does AzureStaticWebApp@0 trigger docker command

I am facing an issue with the task AzureStaticWebApp@0. AzureStaticWebApp@0 uses docker command in the background. See image below: We have been advised to only in-house agents and we don't have any agent which is UNIX based and can run the docker…
1
vote
1 answer

How to automatically restart a Docker container with/from a clean image?

I'm working on introducing build agents in docker container and starting them currently with the following command: docker run -d --restart=unless-stopped --cpus="4" -m="8g" --name "${AZP_AGENT_NAME}${i}" -e AZP_URL="$AZP_URL" -e…
1
vote
1 answer

Server Core Docker image with "VSTEST" and "VISUALSTUDIO" capabilities for a hosted DevOps Agent

I'm trying to move our self-hosted DevOps agent hosts from being stand-alone VMs to being docker containers, and I'm having some issues satisfying the requirements some of our pipelines have. Specifically, vstest and visualstudio seem to be most…
1
vote
0 answers

Microsoft.Extensions.* 3.1.* is not compatible with netcoreapp3.1 on Azure agent "windows-latest"

NuGet restore failed to restore packages on build pipeline (windows-latest). Had to pin the build agent to windows-2019 to get it working again.
1
vote
1 answer

What rights are required to automate DevEnv.exe to build a website

Environment: TeamCity 6.5.1 on Win2k3, BuildAgent(s) on Win2k3, Visual Studio 2k10, .NET v4, Nant 0.91 I'm completing the setup of TeamCity and am trying to lock down the BuildAgent account on the build machine(s) per our security guidelines. The…
AlG
  • 14,697
  • 4
  • 41
  • 54
1
vote
1 answer

"Job is pending" message in Azure DevOps pipelines

We are using TFVC as VCS, our repo is located in Azure Repos, we use Azure DevOps for CI/CD. There is a pipeline building changes of Main branch and "Gated check-in" option is enabled. We use hosted agents deployed on our build servers. Currently…
1
vote
1 answer

Azure Pipelines BizTalk - Microsoft Hosted Build Agent

Repos: Git Agent: Microsoft Hosted Agent In Azure Pipeline I am using Visual Studio Build Task to Build BizTalk Solution. But facing below error. I am using Microsoft Hosted Agent, is there any solution to resolve this except for using Self Hosted…
S N G
  • 25
  • 2
1
vote
1 answer

Devops2019 JobAgent Down after URL Change

We are using Devops 2019 (App and data tiers are on two different servers),As part of our domain migration we have changed our Devops URL from: https:\domain.wireless.com to: https:\domain.wire.com But post URL change, we have noticed all the build…
1
vote
2 answers

Unable to find NuGet package version in TFS build?

I am using TFS 2017 and NuGet Installer - 0 task for NuGet restore in build definition but getting an error unable to find version. It's using below command for restoring…
Naveen Kumar
  • 1,266
  • 1
  • 21
  • 50