6,076 questions
1
vote
1
answer
220
views
How to cache downloaded go dependencies in a containerized custom script execution?
One of my build steps is a custom script:
bash test/test.sh
The script itself sits in the source code and launches the testing:
cd test && go test github.com/geniot/blaze-test/src -json
I ...
1
vote
0
answers
64
views
In TeamCity, why are Angular tests failing to start in the build but not in the agent's terminal?
SOLVED: The issue was a difference in temp directories in the environment. The build was using the temp directories set in buildAgent.properties and the terminal was using the default /tmp directory. ...
1
vote
0
answers
50
views
Can't start test container in container
I'm using test-container. It's well when I execute in my local, but when it executed in docker container (teamcity agent), it doesn't work.
Caused by: java.lang.ExceptionInInitializerError: Exception ...
0
votes
0
answers
34
views
TeamCity checkout rules are having issues with parameters and absolute paths
Two issues that seem like they might be related. I'm trying to apply checkout rules for a VCS and getting weird results
+:Installers/Script => %teamcity.agent.work.dir%\Installers\Script is just ...
0
votes
0
answers
32
views
TeamCity REST API schemas
Sorry for the neophyte question, but I'm getting my feet wet on REST APIs just now. I've been extremelly happy using the xsdata library to generate parsers for IEEE IPXACT 1685-2014 data. Now I want ...
0
votes
0
answers
54
views
Why does my trigger and pull request NOT work in TeamCity?
we have tried to add a trigger and pull request feature in our building type. When a merge request in GitLab is opened, it will automatically trigger one building. We are using the Pull Request ...
-1
votes
1
answer
40
views
Sharing failure conditions across all build configurations in TeamCity
We're using TeamCity to build all our Unity games and I would like to set up custom failure conditions for all build configurations. Our current structure looks like this:
Root/
Project1/
Build ...
0
votes
1
answer
116
views
VS22 Setup project used with TeamCity throws Unable to find dependency warning
I'm using VS2022 Setup project for a .Net Framework 4.8 winforms application. Locally on my PC everything runs fine, but running the project with TeamCity 2025.03 leads to a lot of warnings.
I build ...
1
vote
0
answers
83
views
TeamCity: How can I execute a build step inside a Docker image as a non-root user, while the agent itself is running in Docker?
When trying to setup a build step to run within node:lts image, I get this:
Unmet requirements:
docker.server.osType contains linux
docker.server.osType exists
I got it working by adding user: root
...
1
vote
0
answers
77
views
How to pass a variable from Teamcity to Octopus deploy
I need to send a variable from Teamcity to Octopus Deploy, to use it there in a PowerShell script
I have tried to send it using "Additional command line arguments" in the step "Build ...
0
votes
0
answers
37
views
TeamCity build agent ssh with CA
I have set up a TeamCity build agent, which runs as 'Local System'.
I have created and signed ssh key pairs.
So, now I have:
id_rsa
id_rsa.pub
id_rsa-cert.pub
When I try to ssh into a device (which ...
0
votes
0
answers
60
views
Configure TeamCity to trigger a build when a pull request is created in Bitbucket
I am using TeamCity (version 2024.07.3 - self-hosted) along with Bitbucket (version 8.19.4 - self-hosted). I would like to configure my TeamCity CI pipeline to trigger automatically whenever a pull ...
0
votes
0
answers
65
views
Failure when running WSL from TeamCity build
I tried to run the simplest WSL command from TeamCity build, but it failed.
The command:
wsl echo "Hello from WSL"
I get the following error:
The file cannot be accessed by the system
It ...
1
vote
0
answers
230
views
Github App refreshable access token doesn't auto renews for Teamcity VCS connection Authentication
Recently we configured out Teamcity VCS root connection setting for Github repositories and utilized Github app for the authentication setting in VCS connections by selecting:
Authentication method as ...
0
votes
1
answer
66
views
How to get a teamcity.build.branch from TeamCity
I need to retrieve the value of teamcity.build.branch and use it for versionName of ANDROID app. I'm attempting to access this parameter using the following methods:
project.findProperty("...
0
votes
0
answers
63
views
Empty Namespace in Code Coverage After Upgrading from .NET 6 to .NET 8 in TeamCity
I'm facing an issue after upgrading my Azure Function App from .NET 6 to .NET 8. When I check the code coverage report in TeamCity, I notice an additional entry labeled
empty namespace name
. This ...
0
votes
1
answer
245
views
Error - ERROR_COULD_NOT_CONNECT_TO_REMOTESVC while trying to deploy to app service
I am getting below error while deploying app service via team city build server.
msdeploy error ERROR_COULD_NOT_CONNECT_TO_REMOTESVC: Web deployment task failed. (Could not connect to the remote ...
0
votes
1
answer
18
views
Prevent teamcity mail notifications upon developing
In teamcity we have builds that are use for both regressions and for developing.
I want that when scheduled trigger (regression) is running the build it will send mail notifications, otherwise it won'...
0
votes
1
answer
158
views
TeamCity snapshot dependency trigger builds
In TeamCity, I have two build configurations: Build A and Build B. Build B has a snapshot dependency on Build A and is set to trigger via a finish build trigger when Build A completes.
When I trigger ...
1
vote
1
answer
390
views
TeamCity agent: error 1067: the process terminated unexpectedly
After installing the TeamCity Agent onto a clean Windows Server 2022 install, it wouldn't start
Windows could not start the TeamCity Build Agent service on Local Computer.
Error 1067: The process ...
0
votes
2
answers
474
views
Trigger build only when PR is created from feature/* to master
I am trying to configure my teamcity pipeline such that builds are only triggered when a PR for a feature/* branch is targeting the master branch, but I am unable to make it work.
In my VCS Root I've ...
1
vote
1
answer
62
views
Run TeamCity whole build chain of project A when build of project B finishes
This is my scenario of builds in teamcity:
Project A:
A1 <- A2 <- A3 (Snapshot dependency)
Project B:
B1
Every build in project A has snapshot dependency on the previous one, with this ...
2
votes
2
answers
260
views
Pytests failing on Teamcity due to Matplotlib backend
I'm trying to run some Python unit tests on a remote build server using Teamcity. They fail when attempting to execute some matplotlib code. I get the following output in the Teamcity build logs, ...
0
votes
1
answer
151
views
Unable to Authenticate Azure Artifacts npm Registry in TeamCity
Description:
I'm encountering an authentication issue when trying to connect my Azure Artifacts npm registry to TeamCity. I've followed the steps below to establish the connection, but I'm receiving a ...
2
votes
0
answers
50
views
Trigger build in Teamcity on chanes into target branch of pull request
I have teamcity 2022.10 and Bitbucket server 8.12. I want to apply build trigger which is runned when target branch of pull request is changed. Now I can only apply trigger on source branch changes ...