Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created May 24, 2017 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmsimard/0b6e1720b7fa1f7d0f696fc00b6418ab to your computer and use it in GitHub Desktop.
Save dmsimard/0b6e1720b7fa1f7d0f696fc00b6418ab to your computer and use it in GitHub Desktop.
ARA failures
#!/bin/bash
# Iterate through failed tasks with ignore_errors False
IFS=$'\n'
for result in $(ara result list --all -f value -c ID -c Action -c Status -c "Ignore Errors" | grep "failed False")
do
id=$(echo $result | awk '{print $1}')
action=$(echo $result | awk '{print $2}')
echo "$action task failure: http://url/result/${id}/"
done
command task failure: http://url/result/083fe287-677c-4f51-a337-fc92be77facc/
fail task failure: http://url/result/ffc82b1e-623d-4d7a-ad26-d3ebab34b777/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment