The Simplest Way to Make Mercurial and Teamcity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using mercurial and teamcity together lets your team run builds when code changes. Mercurial stores the source code, and TeamCity pulls those files to test and build your app. This workflow turns manual checks into fast, repeatable tasks for every new change. Teams can spot broken code early and ship clean builds to users. How mercurial and teamcity move code and check keys To start a build, the build server must talk to the code host. You set up a root link in the build tool that points to t

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Using mercurial and teamcity together lets your team run builds when code changes. Mercurial stores the source code, and TeamCity pulls those files to test and build your app. This workflow turns manual checks into fast, repeatable tasks for every new change. Teams can spot broken code early and ship clean builds to users.

How mercurial and teamcity move code and check keys

To start a build, the build server must talk to the code host. You set up a root link in the build tool that points to the repo path. The server checks this path on a set timer or waits for a push notice. When a developer sends new code, the server sees the change right away.

The build server needs a secret key or password to log in and read the files. Most teams use SSH keys or web tokens to let the server log in. Once the login check passes, the server pulls the exact code version onto a build agent. The agent runs your test steps, makes the app package, and saves the build log. If the build step writes a tag back to the repo, it needs write rights too.

Common failure modes and how to scope roles

Many teams make the mistake of using one shared admin account for all build jobs. If someone steals that broad key, they can read or delete every repo you own. Shared accounts also ruin your audit logs because every action looks the same. You cannot tell which project or person ran a bad command on the server.

Another common issue happens when build agents store static keys on their local disks. Any script that runs during a build might read those saved keys from the disk. To fix this, give each project its own small role with read-only rights. Only grant write rights to the single job that tags releases. Keep your network paths tight so only known build agents can reach the code host.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Keeping build agents clean and fast

Large repos can slow down your builds if agents pull the full history every time. You can set up local caches on the build server to speed up file transfers. The server updates its own cache once and shares those files with each agent. It is also wise to wipe the agent work folder after sensitive builds finish. This step makes sure leftover source files or test secrets do not stay on the disk. Good logs and clean disks keep your pipeline safe and easy to run.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Does the build server need write rights to the code repo?

No, most build jobs only need read rights to pull code and run tests. You only need write rights if the build job pushes tags or version updates back.

Should we use SSH keys or passwords for repo logins?

SSH keys are much safer than plain passwords for server-to-server logins. Make sure you scope each key to one project and rotate those keys on a regular schedule.

How do we stop build scripts from leaking secret keys?

Never print secret values in your build logs, and keep keys out of your source code. Scope agent permissions so a test job can only read the exact repo it needs.

Teams that document these role rules and review logs each month catch config drift early. Clear ownership for each role keeps live systems simple to run and easy to audit across the whole team.

The query runs. The emails stay hidden.