Grab failure details from pipeline jobs

- if a job fails, try to get the stages from the job
- if there are stages, get from non-SUCCESS stages all the
  workflow 'nodes' (the commands performed in the stage, like
  'running shell script' or 'echo'), and get the log from the
  failed node only.
- if there are no stages found (assuming that this is
  a pipeline job), get the complete job console output

When a pipeline job failed, the parent job is failed throwing
the exception contaied the found details.

Change-Id: Ie5c2171e5373345b1951de55ba604b5d484340d3
diff --git a/.gitignore b/.gitignore
index ea68183..71462bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,6 +45,7 @@
 
 # Local settings
 local_settings.py
+id_rsa
 
 # Documentation
 doc/_build/