These are the default limits. Some organizations have different ones: new organizations without a credit limit start with tighter limits, and support can raise them for an organization. Your own limits are shown where they apply, for example in the timeout field of the build settings.
Builds
Limit
Value
When it is reached
Builds running at once, per organization
2 (1 for new organizations without a credit limit)
The next builds wait in the queue.
Builds waiting, per organization
20
A new build is refused.
Builds per service
1 running and 1 waiting
A newer push replaces the waiting one, shown as Replaced by a newer build. A running build is never cancelled by a newer push.
Time in the queue
6 hours
The build expires: Expired in the queue.
Build time limit
20 minutes by default, 5 to 60 (up to 30 for new organizations without a credit limit)
If the builders are busy, a build waits and the build page says why: your organization is at its limit, every builder is busy, or the spend cap has no room until a running build finishes. Waiting is fair between organizations: one organization at its limit never blocks the others.
Repository and image
Limit
Value
When it is reached
Repository, when cloned
2 GiB
repo_too_large. Set a root directory, remove large files or use Git LFS.
Live deployments, the previous deployment, the 10 latest successful builds and everything from the last 7 days. See Rollbacks
Logs and history
Limit
Value
Build log size
50,000 lines or 20 MiB. Past it the log is cut, with a marker
Build logs are kept
30 days
Build history is kept
13 months
Secrets, hooks and triggers
Limit
Value
Build secrets
50 per service, 64 KiB each. Names of up to 64 characters
Deploy hooks
3 per service, 30 calls a minute each
Check for new commits (plain git)
Every 3 minutes by default. A repository with a very large number of tags is checked less often
Wait for the build API call
Up to 10 minutes per call. Call it again to keep waiting
Pre-deploy command
10 minutes by default, up to 30
Health check wait
5 minutes by default
Minutes
Build minutes, builder sizes, extra minutes and the spend cap are explained in Build minutes. The part of your limit that is about money lives in Settings > Builds: see Build settings.
Ask for more
If you hit a limit that your work needs, contact support and say which one and why. Limits that protect the builders, such as the build time, are raised for an organization after a look, not by default.