Skip to content

Commit

Permalink
merge: Merge pull request #22 from DSD-DBS/add-system-exit-for-pipelines
Browse files Browse the repository at this point in the history
Add system exit for failure in ci environments
  • Loading branch information
ewuerger authored Feb 2, 2023
2 parents f7a5f21 + 75d60f4 commit 2e032a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions capella_rm_bridge/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import collections.abc as cabc
import logging
import pathlib
import sys
import typing as t

import capellambse
Expand Down Expand Up @@ -162,6 +163,8 @@ def main(
if save_error_log:
ERROR_PATH.write_text(error_statement, encoding="utf8")
LOGGER.info("Change-errors file %s written.", ERROR_PATH)

sys.exit(1)
else:
commit_message = reporter.create_commit_message(snapshot["metadata"])
print(commit_message)
Expand Down

0 comments on commit 2e032a9

Please sign in to comment.