Commit ed9c1f9c authored by Mattia Rizzolo's avatar Mattia Rizzolo

always return while failing deployment

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent db8db907
...@@ -262,7 +262,7 @@ class Branch: ...@@ -262,7 +262,7 @@ class Branch:
log("[!] Failed to execute build command: %s" % " ".join(cmd)) log("[!] Failed to execute build command: %s" % " ".join(cmd))
log("[!] Error: %s" % e) log("[!] Error: %s" % e)
log("[!] Aborting!") log("[!] Aborting!")
self.fail_deployment(branch) return self.fail_deployment(branch)
# Check if the branch was successifully built # Check if the branch was successifully built
popen_args = self.command_popen_args(self.config["run"]) popen_args = self.command_popen_args(self.config["run"])
...@@ -271,7 +271,7 @@ class Branch: ...@@ -271,7 +271,7 @@ class Branch:
self.update_status("success") self.update_status("success")
else: else:
log("[!] Warning: build seems to have failed") 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.details["branches"][self.name] = self.mr
self.manager.save_details() 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