Bazel: Extend workspace status command to stamp jgit artifact
Also-by: Christian Aistleitner <christian@quelltextlich.at> Cherry-Picks: Ibe74e6de4ac0819c67dbd3ebb7008c3a716f3e06 Bug: Issue 14646 Change-Id: Ic49bfe5a5919474aba8859f3a843e5a39c6a2794
This commit is contained in:
parent
6ce7d261e1
commit
79d48b70c6
|
@ -36,9 +36,11 @@ def revision(directory, parent):
|
||||||
|
|
||||||
|
|
||||||
print("STABLE_BUILD_GERRIT_LABEL %s" % revision(ROOT, ROOT))
|
print("STABLE_BUILD_GERRIT_LABEL %s" % revision(ROOT, ROOT))
|
||||||
for d in os.listdir(os.path.join(ROOT, 'plugins')):
|
for kind in ['modules', 'plugins']:
|
||||||
p = os.path.join('plugins', d)
|
kind_dir = os.path.join(ROOT, kind)
|
||||||
if os.path.isdir(p):
|
for d in os.listdir(kind_dir):
|
||||||
v = revision(p, ROOT)
|
p = os.path.join(kind_dir, d)
|
||||||
print('STABLE_BUILD_%s_LABEL %s' % (os.path.basename(p).upper(),
|
if os.path.isdir(p):
|
||||||
v if v else 'unknown'))
|
v = revision(p, ROOT)
|
||||||
|
print('STABLE_BUILD_%s_LABEL %s' % (os.path.basename(p).upper(),
|
||||||
|
v if v else 'unknown'))
|
||||||
|
|
Loading…
Reference in New Issue