Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.py
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | def load(self, build_name): | ||||
# If the template exists, apply the build configuration on top of the | # If the template exists, apply the build configuration on top of the | ||||
# template. Otherwise it is equivalent to the build configuration | # template. Otherwise it is equivalent to the build configuration | ||||
# alone. | # alone. | ||||
self.config = always_merger.merge( | self.config = always_merger.merge( | ||||
templates.get(template_name, {}), build) | templates.get(template_name, {}), build) | ||||
# Make sure there is a script file associated with the build... | # Make sure there is a script file associated with the build... | ||||
script = build.get("script", None) | script = self.config.get("script", None) | ||||
if script is None: | if script is None: | ||||
raise AssertionError( | raise AssertionError( | ||||
"No script provided for the build {}".format( | "No script provided for the build {}".format( | ||||
self.name | self.name | ||||
) | ) | ||||
) | ) | ||||
# ... and that the script file can be executed | # ... and that the script file can be executed | ||||
▲ Show 20 Lines • Show All 275 Lines • Show Last 20 Lines |