Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/server.py
Show First 20 Lines • Show All 356 Lines • ▼ Show 20 Lines | def triggerCI(): | ||||
# just return. | # just return. | ||||
# TODO return an help command to explain how to use the bot. | # TODO return an help command to explain how to use the bot. | ||||
if not builds: | if not builds: | ||||
return SUCCESS, 200 | return SUCCESS, 200 | ||||
staging_ref = phab.get_latest_diff_staging_ref(revision_PHID) | staging_ref = phab.get_latest_diff_staging_ref(revision_PHID) | ||||
# Trigger the requested builds | # Trigger the requested builds | ||||
for build in builds: | for build in builds: | ||||
# FIXME the hardcoded infos here should be gathered from somewhere | |||||
tc.trigger_build( | |||||
"BitcoinABC_BitcoinAbcStaging", | |||||
staging_ref, | |||||
properties=[{ | properties = [{ | ||||
'name': 'env.ABC_BUILD_NAME', | 'name': 'env.ABC_BUILD_NAME', | ||||
'value': build, | 'value': build, | ||||
}] | }] | ||||
# Temporary agent pool override until we've completely migrated | |||||
# away from the lower memory build agents. | |||||
if build == 'build-tsan': | |||||
properties.append({ | |||||
'agent': { | |||||
'pool': { | |||||
# ABC Build Agent pool | |||||
'id': 1, | |||||
}, | |||||
}, | |||||
}) | |||||
# FIXME the hardcoded infos here should be gathered from somewhere | |||||
tc.trigger_build( | |||||
"BitcoinABC_BitcoinAbcStaging", | |||||
staging_ref, | |||||
properties=properties, | |||||
) | ) | ||||
# If we reach this point, trigger_build did not raise an exception. | # If we reach this point, trigger_build did not raise an exception. | ||||
return SUCCESS, 200 | return SUCCESS, 200 | ||||
@app.route("/status", methods=['POST']) | @app.route("/status", methods=['POST']) | ||||
def buildStatus(): | def buildStatus(): | ||||
out = get_json_request_data(request) | out = get_json_request_data(request) | ||||
▲ Show 20 Lines • Show All 526 Lines • Show Last 20 Lines |