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:
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:\
Please sign in to leave a 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:
What is the value set in workDir for the two agents?