File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -104,22 +104,22 @@ while [[ "${finished}" == "false" ]]; do
104
104
echo " FATAL ERROR: ${BASH_SOURCE[0]} rocoto failed with state '${state} '"
105
105
# Determine which builds failed
106
106
echo " $( rocotostat -w " ${build_xml} " -d " ${build_db} " ) " > rocotostat.out
107
- line_number=0
108
- rm -f logs/error.logs
107
+ line_number=0
108
+ rm -f logs/error.logs
109
109
set -x
110
- while read -r line; do
110
+ while read -r line; do
111
111
(( line_number += 1 ))
112
- # Skip the first two lines (header)
112
+ # Skip the first two lines (header)
113
113
if [[ ${line_number} -lt 3 ]]; then
114
114
continue
115
- fi
115
+ fi
116
116
117
117
if [[ " ${line} " =~ " DEAD" || " ${line} " =~ " UNKNOWN" ||
118
118
" ${line} " =~ " UNAVAILABLE" || " ${line} " =~ " FAIL" ]]; then
119
119
job=$( echo " ${line} " | awk ' { print $2 }' )
120
120
log_file=" logs/build_${job} "
121
- echo " ${log_file} " >> logs/error.logs
122
- echo " Rocoto reported that the build failed for ${job} "
121
+ echo " ${log_file} " >> logs/error.logs
122
+ echo " Rocoto reported that the build failed for ${job} "
123
123
fi
124
124
done < rocotostat.out
125
125
exit 2
You can’t perform that action at this time.
0 commit comments