Modify commit message on errors

If errors are encountered, print a different commit message to the
results branch so that it can be spotted more easily.
This commit is contained in:
Patrick Lühne 2017-11-21 00:02:28 +01:00
parent ae7a4306a0
commit 7e51d5fedf
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -233,7 +233,13 @@ def runJob(configuration, instance, config):
print(yaml.dump(environment, default_flow_style = False), file = environmentFile) print(yaml.dump(environment, default_flow_style = False), file = environmentFile)
git(["add", outputFiles["outputFile"], outputFiles["errorFile"], outputFiles["environmentFile"]], dataDir, enforce = True) git(["add", outputFiles["outputFile"], outputFiles["errorFile"], outputFiles["environmentFile"]], dataDir, enforce = True)
git(["commit", "-m Add benchmark result " + jobName], dataDir, enforce = True)
if exitCode == 0:
message = "Add benchmark result"
else:
message = "Add corrupt benchmark result"
git(["commit", "-m " + message + " " + jobName], dataDir, enforce = True)
git(["push"], dataDir) git(["push"], dataDir)
if exitCode != 0: if exitCode != 0: