mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
greater than 0
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ do
|
||||
curl -s --location --request GET https://appinspect.splunk.com/v1/app/report/$REQUEST_ID --header "Authorization: bearer $APPINSPECT_TOKEN" --header 'Content-Type: text/html' -o report/appinspect_report.html
|
||||
FAILS=$(curl -s --location --request GET https://appinspect.splunk.com/v1/app/report/$REQUEST_ID --header "Authorization: bearer $APPINSPECT_TOKEN" --header 'Content-Type: application/json' | jq -r '.summary | .failure')
|
||||
ERRORS=$(curl -s --location --request GET https://appinspect.splunk.com/v1/app/report/$REQUEST_ID --header "Authorization: bearer $APPINSPECT_TOKEN" --header 'Content-Type: application/json' | jq -r '.summary | .error')
|
||||
if [ $FAILS -gt 1 -o $ERRORS -gt 1 ]
|
||||
if [ $FAILS -gt 0 -o $ERRORS -gt 0 ]
|
||||
then
|
||||
echo "ERROR appinspect had $FAILS failures and or $ERRORS errors, see summary report under job artifacts for details"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user