Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/server.py
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | def backportCheck(): | ||||
if foundPRs > 0: | if foundPRs > 0: | ||||
phab.updateRevisionSummary(revisionId, newSummary) | phab.updateRevisionSummary(revisionId, newSummary) | ||||
return SUCCESS, 200 | return SUCCESS, 200 | ||||
@app.route("/build", methods=['POST']) | @app.route("/build", methods=['POST']) | ||||
def build(): | def build(): | ||||
buildTypeId = request.args.get('buildTypeId', None) | buildTypeId = request.args.get('buildTypeId', None) | ||||
ref = request.args.get('ref', 'master') | ref = request.args.get('ref', 'refs/heads/master') | ||||
PHID = request.args.get('PHID', None) | PHID = request.args.get('PHID', None) | ||||
abcBuildName = request.args.get('abcBuildName', None) | abcBuildName = request.args.get('abcBuildName', None) | ||||
properties = None | properties = None | ||||
if abcBuildName: | if abcBuildName: | ||||
properties = [{ | properties = [{ | ||||
'name': 'env.ABC_BUILD_NAME', | 'name': 'env.ABC_BUILD_NAME', | ||||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | def land(): | ||||
'name': 'env.ABC_COMMITTER_NAME', | 'name': 'env.ABC_COMMITTER_NAME', | ||||
'value': committerName, | 'value': committerName, | ||||
}, { | }, { | ||||
'name': 'env.ABC_COMMITTER_EMAIL', | 'name': 'env.ABC_COMMITTER_EMAIL', | ||||
'value': committerEmail, | 'value': committerEmail, | ||||
}] | }] | ||||
output = tc.trigger_build( | output = tc.trigger_build( | ||||
LANDBOT_BUILD_TYPE, | LANDBOT_BUILD_TYPE, | ||||
'master', | 'refs/heads/master', | ||||
UNRESOLVED, | UNRESOLVED, | ||||
properties) | properties) | ||||
if output: | if output: | ||||
return output | return output | ||||
return FAILURE, 500 | return FAILURE, 500 | ||||
@app.route("/triggerCI", methods=['POST']) | @app.route("/triggerCI", methods=['POST']) | ||||
@verify_hmac('HMAC_TRIGGER_CI') | @verify_hmac('HMAC_TRIGGER_CI') | ||||
▲ Show 20 Lines • Show All 620 Lines • Show Last 20 Lines |