Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.py
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | environment_variables = { | ||||
"TOPLEVEL": str(git_root), | "TOPLEVEL": str(git_root), | ||||
} | } | ||||
try: | try: | ||||
subprocess.run( | subprocess.run( | ||||
[str(script_path)] + unknown_args, | [str(script_path)] + unknown_args, | ||||
check=True, | check=True, | ||||
cwd=build_directory, | cwd=build_directory, | ||||
env={**os.environ, **environment_variables}, | env={ | ||||
**os.environ, | |||||
**environment_variables, | |||||
**build.get("environment", {}) | |||||
}, | |||||
timeout=build.get("timeout", DEFAULT_TIMEOUT), | timeout=build.get("timeout", DEFAULT_TIMEOUT), | ||||
) | ) | ||||
except subprocess.TimeoutExpired as e: | except subprocess.TimeoutExpired as e: | ||||
print( | print( | ||||
"Build {} timed out after {:.1f}s".format( | "Build {} timed out after {:.1f}s".format( | ||||
args.build, round(e.timeout, 1) | args.build, round(e.timeout, 1) | ||||
) | ) | ||||
) | ) | ||||
Show All 14 Lines |