Try to fix the version updated bot.
No-Presubmit: True Bug: webrtc:13373 Change-Id: I30418f760cda6be31c75ff7e59311cb59c1874c9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/238805 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35415}
This commit is contained in:
parent
a018e677f2
commit
4e8e36c745
@ -29,6 +29,8 @@ def FindSrcDirPath():
|
|||||||
UPDATE_BRANCH_NAME = 'webrtc_version_update'
|
UPDATE_BRANCH_NAME = 'webrtc_version_update'
|
||||||
CHECKOUT_SRC_DIR = FindSrcDirPath()
|
CHECKOUT_SRC_DIR = FindSrcDirPath()
|
||||||
|
|
||||||
|
NOTIFY_EMAIL = 'mbonadei@webrtc.org'
|
||||||
|
|
||||||
|
|
||||||
def _RemovePreviousUpdateBranch():
|
def _RemovePreviousUpdateBranch():
|
||||||
active_branch, branches = _GetBranches()
|
active_branch, branches = _GetBranches()
|
||||||
@ -126,11 +128,12 @@ def _UploadCL(commit_queue_mode):
|
|||||||
- 0: Skip CQ, upload only.
|
- 0: Skip CQ, upload only.
|
||||||
"""
|
"""
|
||||||
cmd = ['git', 'cl', 'upload', '--force', '--bypass-hooks',
|
cmd = ['git', 'cl', 'upload', '--force', '--bypass-hooks',
|
||||||
'--cc=""', '--bypass-watchlist']
|
'--bypass-watchlist']
|
||||||
if commit_queue_mode >= 2:
|
if commit_queue_mode >= 2:
|
||||||
logging.info('Sending the CL to the CQ...')
|
logging.info('Sending the CL to the CQ...')
|
||||||
cmd.extend(['-o', 'label=Bot-Commit+1'])
|
cmd.extend(['-o', 'label=Bot-Commit+1'])
|
||||||
cmd.extend(['-o', 'label=Commit-Queue+2'])
|
cmd.extend(['-o', 'label=Commit-Queue+2'])
|
||||||
|
cmd.extend(['--send-mail', '--cc', NOTIFY_EMAIL])
|
||||||
elif commit_queue_mode >= 1:
|
elif commit_queue_mode >= 1:
|
||||||
logging.info('Starting CQ dry run...')
|
logging.info('Starting CQ dry run...')
|
||||||
cmd.extend(['-o', 'label=Commit-Queue+1'])
|
cmd.extend(['-o', 'label=Commit-Queue+1'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user