Build depencencies checkout issue

Hi,

I am using TeamCity 2022.10.

I have deployed two agent machines.

On the first agent, the agent directory is on the C:\ (C:\BuildAgent). THe second agent is on the E:\ (E:\BuildAgent).

I have a build configured, with two build configurations:

Build > Builds on Agent1
Build2 > Builds on Agent2

Build2 has a snapshot dependency on Build, as that's a pre-requisite.

However, when Build2 starts, I get this message:

 Cannot find PowerShell script by path specified in build configuration settings: C:\BuildAgent\work\69b85ade0cc00894\DeployDependencies2.ps1

 

As mentioned, the agent directory is on E:\

The build also states, before this:

Checkout directory: C:\BuildAgent\work\69b85ade0cc00894

Instead, the directory is \69b85ade0cc00894 on C:\

I guess as the folder BuildAgent can't be found on C:\

So my question is, how can I have Build2 checkout to E:\ where the agent dir is, like Build1 does on C:\

 

0
1 comment

Hi,

It seems to me something might be wrong with the configuration of the work directory under <BUILDAGENT_DIRECTORY>/conf/buildAgent.properties file. The default value should be:

## Container directory to create default checkout directories for the build configurations.
## TeamCity agent assumes ownership of the directory and will delete unknown directories inside.
workDir=../work

What is the value set in workDir for the two agents?

0

Please sign in to leave a comment.