remove incorrect skip if path exists
the path might exists also the build failed
This commit is contained in:
parent
22c64dd297
commit
b5681b1ea0
|
@ -209,12 +209,6 @@ class NixBuildCommand(buildstep.ShellMixin, steps.BuildStep):
|
||||||
log: Log = yield self.addLog("nix_error")
|
log: Log = yield self.addLog("nix_error")
|
||||||
log.addStderr(f"{attr} failed to evaluate:\n{error}")
|
log.addStderr(f"{attr} failed to evaluate:\n{error}")
|
||||||
return util.FAILURE
|
return util.FAILURE
|
||||||
path = self.getProperty("out_path")
|
|
||||||
|
|
||||||
# FIXME: actually we should check if it exists in the remote machine
|
|
||||||
if os.path.exists(path):
|
|
||||||
# build already succeeded
|
|
||||||
return util.SKIPPED
|
|
||||||
|
|
||||||
# run `nix build`
|
# run `nix build`
|
||||||
cmd: remotecommand.RemoteCommand = yield self.makeRemoteShellCommand()
|
cmd: remotecommand.RemoteCommand = yield self.makeRemoteShellCommand()
|
||||||
|
|
Loading…
Reference in a new issue