Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/server.py
Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | def build_diff(): | ||||
}] | }] | ||||
build_id = tc.trigger_build( | build_id = tc.trigger_build( | ||||
'BitcoinABC_BitcoinAbcStaging', | 'BitcoinABC_BitcoinAbcStaging', | ||||
staging_ref, | staging_ref, | ||||
target_phid, | target_phid, | ||||
properties)['id'] | properties)['id'] | ||||
build_target.queue_build(build_id, build_name) | build_target.queue_build(build_id, build_name) | ||||
if len(build_target.builds) > 0: | |||||
create_server.db['diff_targets'][target_phid] = build_target | create_server.db['diff_targets'][target_phid] = build_target | ||||
else: | |||||
phab.update_build_target_status(build_target) | |||||
return SUCCESS, 200 | return SUCCESS, 200 | ||||
@app.route("/land", methods=['POST']) | @app.route("/land", methods=['POST']) | ||||
def land(): | def land(): | ||||
data = get_json_request_data(request) | data = get_json_request_data(request) | ||||
revision = data['revision'] | revision = data['revision'] | ||||
if not revision: | if not revision: | ||||
▲ Show 20 Lines • Show All 711 Lines • Show Last 20 Lines |