We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ade425d commit b4739fdCopy full SHA for b4739fd
readthedocs/doc_builder/director.py
@@ -298,11 +298,12 @@ def run_build_job(self, job):
298
return
299
300
cwd = self.data.project.checkout_path(self.data.version.slug)
301
+ environment = self.vcs_environment
302
+ if job not in ("pre_checkout", "post_checkout"):
303
+ environment = self.build_environment
304
+
305
commands = getattr(self.data.config.build.jobs, job, [])
306
for command in commands:
- environment = self.vcs_environment
- if job not in ("pre_checkout", "post_checkout"):
- environment = self.build_environment
307
environment.run(*command.split(), escape_command=False, cwd=cwd)
308
309
# Helpers
0 commit comments