jenkinsfile

This commit is contained in:
unknown 2020-04-03 14:23:18 +02:00
parent 445450c115
commit 651b3baaa0

View File

@ -6,7 +6,7 @@ with open("helper.txt", "r") as f:
for line in f:
if re.match(r'^id:.*', line):
wer.write(line + " = ")
elif re.match(r'^Scores: (#C #S #D #I).*', line):
elif re.match(r'^Scores:.*', line):
helper = line.replace("Scores: (#C #S #D #I) ", "").split()
sum = helper[0] + helper[1] + helper[2] + helper[3]
wer.write(str((helper[0]/sum) * 100) + "%\n")