diff --git a/readthedocs/projects/tasks/builds.py b/readthedocs/projects/tasks/builds.py index 9ddcb6524fb..e666f12f634 100644 --- a/readthedocs/projects/tasks/builds.py +++ b/readthedocs/projects/tasks/builds.py @@ -209,6 +209,9 @@ def execute(self): environment={ "GIT_TERMINAL_PROMPT": "0", }, + # Pass the api_client so that all environments have it. + # This is needed for ``readthedocs-corporate``. + api_client=self.data.api_client, # Do not try to save commands on the db because they are just for # sync repository record=False,