mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
ninjalog: Send AUTONINJA_BUILD_ID as invocation_id in metadata
Bug: 355127782 Change-Id: Iee9cb6228e568cc6d3ec12a7764e04442776af4c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5740774 Auto-Submit: Junji Watanabe <jwata@google.com> Reviewed-by: Takuto Ikuta <tikuta@chromium.org> Commit-Queue: Junji Watanabe <jwata@google.com>
This commit is contained in:
@@ -157,6 +157,10 @@ def GetMetadata(cmdline, ninjalog):
|
||||
"targets": GetBuildTargetFromCommandLine(cmdline),
|
||||
}
|
||||
|
||||
invocation_id = os.environ.get("AUTONINJA_BUILD_ID")
|
||||
if invocation_id:
|
||||
metadata['invocation_id'] = invocation_id
|
||||
|
||||
jflag = GetJflag(cmdline)
|
||||
if jflag is not None:
|
||||
metadata["jobs"] = jflag
|
||||
|
||||
Reference in New Issue
Block a user