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:
parent
ae7a4306a0
commit
7e51d5fedf
@ -233,7 +233,13 @@ def runJob(configuration, instance, config):
|
||||
print(yaml.dump(environment, default_flow_style = False), file = environmentFile)
|
||||
|
||||
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)
|
||||
|
||||
if exitCode != 0:
|
||||
|
Loading…
Reference in New Issue
Block a user