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:
|
if error:
|
||||||
print(f"AUDIT ERROR: {error}")
|
print(f"AUDIT ERROR: {error}")
|
||||||
# If the audit couldn't run (eg transient salt/transport issues), do not
|
# 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":
|
if error == "audit_failed":
|
||||||
return 1
|
return 0
|
||||||
return 2
|
return 2
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user