always return while failing deployment

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent db8db907
......@@ -262,7 +262,7 @@ class Branch:
log("[!] Failed to execute build command: %s" % " ".join(cmd))
log("[!] Error: %s" % e)
log("[!] Aborting!")
self.fail_deployment(branch)
return self.fail_deployment(branch)
# Check if the branch was successifully built
popen_args = self.command_popen_args(self.config["run"])
......@@ -271,7 +271,7 @@ class Branch:
self.update_status("success")
else:
log("[!] Warning: build seems to have failed")
self.fail_deployment(branch)
return self.fail_deployment(branch)
self.manager.details["branches"][self.name] = self.mr
self.manager.save_details()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment