Skip to content

Commit

Permalink
Fail build_windows.py if all retries failed (apache#18177)
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Oct 1, 2020
1 parent 0015331 commit a41ec7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/build_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ def windows_build(args):
logging.info("Build flavour: {} complete in directory: \"{}\"".format(args.flavour, os.path.abspath(path)))
logging.info("Build took {}".format(datetime.timedelta(seconds=int(time.time() - t0))))
break
windows_package(args)
if ret == 0:
windows_package(args)
else:
sys.exit(1)


def windows_package(args):
Expand Down

0 comments on commit a41ec7e

Please sign in to comment.