Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/server.py
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | def build_diff(): | ||||
) | ) | ||||
return value | return value | ||||
staging_ref = get_mandatory_argument('stagingRef') | staging_ref = get_mandatory_argument('stagingRef') | ||||
target_phid = get_mandatory_argument('targetPHID') | target_phid = get_mandatory_argument('targetPHID') | ||||
# Get the configuration from master | # Get the configuration from master | ||||
config = yaml.safe_load(phab.get_file_content_from_master( | config = yaml.safe_load(phab.get_file_content_from_master( | ||||
"contrib/teamcity/build-configurations.yaml")) | "contrib/teamcity/build-configurations.yml")) | ||||
# Get a list of the builds that should run on diffs | # Get a list of the builds that should run on diffs | ||||
builds = [ | builds = [ | ||||
k for k, | k for k, | ||||
v in config.get( | v in config.get( | ||||
'builds', | 'builds', | ||||
{}).items() if v.get( | {}).items() if v.get( | ||||
'runOnDiff', | 'runOnDiff', | ||||
▲ Show 20 Lines • Show All 676 Lines • Show Last 20 Lines |