Files

11 lines
330 B
Python

"""Print the newest published content build key: the last STEP CONTENT/STORE line's target key (#166 regression gate)."""
import sys
last = None
for line in open(sys.argv[1]):
p = line.split()
if len(p) >= 5 and p[0] == 'STEP' and p[1] in ('CONTENT', 'STORE'):
last = p[4]
if not last:
sys.exit(1)
print(last)