build: In py build scripts, exit with code 1 on failure
Previously, they would exit with 0 no matter what happened.
This commit is contained in:
1 parent
5ed2309d22
commit
838dbcd886
5 files changed
+9
-1
No files matched your search
@@ -121,3 +121,4 @@ if __name__ == "__main__":
|
||||
_main()
|
||||
except Exception as e:
|
||||
print(f'build_api_server.py failed: {e}')
|
||||
exit(1)
|
||||
@@ -137,3 +137,4 @@ if __name__ == "__main__":
|
||||
_main()
|
||||
except Exception as e:
|
||||
print(f'build_data_stream.py failed: {e}')
|
||||
exit(1)
|
||||
@@ -125,3 +125,4 @@ if __name__ == "__main__":
|
||||
_main()
|
||||
except Exception as e:
|
||||
print(f'build_spark.py failed: {e}')
|
||||
exit(1)
|
||||
@@ -131,3 +131,4 @@ if __name__ == "__main__":
|
||||
_main()
|
||||
except Exception as e:
|
||||
print(f'build_sparkd.py failed: {e}')
|
||||
exit(1)
|
||||
@@ -149,4 +149,8 @@ def _main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
_main()
|
||||
try:
|
||||
_main()
|
||||
except Exception as e:
|
||||
print(f'publish_spark.py failed: {e}')
|
||||
exit(1)
|
||||
Reference in new issue
Block a user