Do not mark Jenkins unstable on audit transport failure
This commit is contained in:
@@ -50,9 +50,9 @@ def print_error(payload: dict) -> int:
|
||||
if error:
|
||||
print(f"AUDIT ERROR: {error}")
|
||||
# If the audit couldn't run (eg transient salt/transport issues), do not
|
||||
# block deployments. Mark as warn/unstable instead.
|
||||
# block deployments.
|
||||
if error == "audit_failed":
|
||||
return 1
|
||||
return 0
|
||||
return 2
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user