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'
|
||||
CHECKOUT_SRC_DIR = FindSrcDirPath()
|
||||
|
||||
NOTIFY_EMAIL = 'mbonadei@webrtc.org'
|
||||
|
||||
|
||||
def _RemovePreviousUpdateBranch():
|
||||
active_branch, branches = _GetBranches()
|
||||
@ -126,11 +128,12 @@ def _UploadCL(commit_queue_mode):
|
||||
- 0: Skip CQ, upload only.
|
||||
"""
|
||||
cmd = ['git', 'cl', 'upload', '--force', '--bypass-hooks',
|
||||
'--cc=""', '--bypass-watchlist']
|
||||
'--bypass-watchlist']
|
||||
if commit_queue_mode >= 2:
|
||||
logging.info('Sending the CL to the CQ...')
|
||||
cmd.extend(['-o', 'label=Bot-Commit+1'])
|
||||
cmd.extend(['-o', 'label=Commit-Queue+2'])
|
||||
cmd.extend(['--send-mail', '--cc', NOTIFY_EMAIL])
|
||||
elif commit_queue_mode >= 1:
|
||||
logging.info('Starting CQ dry run...')
|
||||
cmd.extend(['-o', 'label=Commit-Queue+1'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user