Is There a Limit on the Number of Contexts I Can Have in a Config?

Overview

The short answer is yes, there is a limit of 100 contexts in a single configuration file. If you have more than this and are using the CircleCLI to validate your config, you will likely see an error like this:

 

Error: the config file references too many contexts (X). The maximum number of contexts allowed in a single config file is 100.

 

If you need to have more than this, then we recommend reviewing your configuration file and possibly evaluating whether you can move some of the contexts to environment variables within other contexts instead to avoid hitting this limit.

 

Additional Resources

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.