jenkinsfile

This commit is contained in:
unknown 2020-04-03 14:55:59 +02:00
parent 8d16916a64
commit e877e2b6d1

View File

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