Allow building debug builds #3
16
commands.py
16
commands.py
@ -118,7 +118,7 @@ def get_pull_commit_hash(repo: str, pull_id: str):
|
|||||||
return result['head']['sha']
|
return result['head']['sha']
|
||||||
|
|
||||||
|
|
||||||
def build(repo: str, reply_url: str, html_url: str, build_type: str, build_id: str, username: str, package: bool, platform_args: Sequence[str]):
|
def build(repo: str, reply_url: str, html_url: str, build_type: str, build_id: str, build_config: str, username: str, package: bool, platform_args: Sequence[str]):
|
||||||
"""
|
"""
|
||||||
Build blender on the buildbot.
|
Build blender on the buildbot.
|
||||||
"""
|
"""
|
||||||
@ -132,7 +132,7 @@ def build(repo: str, reply_url: str, html_url: str, build_type: str, build_id: s
|
|||||||
|
|
||||||
params = {"needs_package_delivery": package,
|
params = {"needs_package_delivery": package,
|
||||||
"platform_architectures": platforms,
|
"platform_architectures": platforms,
|
||||||
"build_configuration": "release"}
|
"build_configuration": build_config}
|
||||||
|
|
||||||
elif repo == "blender/blender-manual":
|
elif repo == "blender/blender-manual":
|
||||||
coordinator_prefix = "vexp-doc-manual"
|
coordinator_prefix = "vexp-doc-manual"
|
||||||
@ -233,14 +233,16 @@ def comment_event(data: Dict[str, Any]):
|
|||||||
tokens = line[len(prefix):].strip().split()
|
tokens = line[len(prefix):].strip().split()
|
||||||
command = tokens[0]
|
command = tokens[0]
|
||||||
args = tokens[1:]
|
args = tokens[1:]
|
||||||
if command == "build" and is_pull:
|
if command == "build" and is_pull and len(args) == 0:
|
||||||
build(repo, reply_url, html_url, 'patch_id', issue_number, username, False, args)
|
build(repo, reply_url, html_url, 'patch_id', "release", issue_number, username, False, args)
|
||||||
|
elif command == "build" and is_pull and len(args) == 1:
|
||||||
|
build(repo, reply_url, html_url, 'patch_id', args[0], issue_number, username, False, args)
|
||||||
elif command == "build-branch" and len(args) >= 1:
|
elif command == "build-branch" and len(args) >= 1:
|
||||||
build(repo, reply_url, html_url, 'override_branch_id', args[0], username, False, args[1:])
|
build(repo, reply_url, html_url, 'override_branch_id', "release", args[0], username, False, args[1:])
|
||||||
elif command == "package" and is_pull:
|
elif command == "package" and is_pull:
|
||||||
build(repo, reply_url, html_url, 'patch_id', issue_number, username, True, args)
|
build(repo, reply_url, html_url, 'patch_id', "release", issue_number, username, True, args)
|
||||||
elif command == "package-branch" and len(args) >= 1:
|
elif command == "package-branch" and len(args) >= 1:
|
||||||
build(repo, reply_url, html_url, 'override_branch_id', args[0], username, True, args[1:])
|
build(repo, reply_url, html_url, 'override_branch_id', "release", args[0], username, True, args[1:])
|
||||||
elif command == "ping":
|
elif command == "ping":
|
||||||
post_comment(reply_url, "pong")
|
post_comment(reply_url, "pong")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user