File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 139
139
}
140
140
# ###################################
141
141
print_info (){
142
- # 解决异常退出-6的问题,CI中的偶现问题,无法复现
143
- if [[ $1 -ne 0 ]] && [[ $1 -ne 250 ]]; then
142
+ if [ $1 -eq 250 ]; then
143
+ # 解决异常退出-6的问题,CI中的偶现问题,无法复现
144
+ echo -e " \033[1;31m"
145
+ echo -e " \033[1;31m The CI execution encountered an abnormal termination with error code exit -6. \033[0m"
146
+ echo -e " \033[1;31m This is an intermittent issue. \033[0m"
147
+ echo -e " \033[1;31m Please re-run the CI. \033[0m"
148
+ echo -e " \033[1;31m"
149
+ exit 2
150
+ fi
151
+ if [[ $1 -ne 0 ]]; then
144
152
EXCODE=2
145
153
if [ ! -f ${log_path} /$2 ]; then
146
154
echo -e " \033[31m run $2 CI FAIL \033"
@@ -151,7 +159,7 @@ if [[ $1 -ne 0 ]] && [[ $1 -ne 250 ]];then
151
159
fi
152
160
exit $EXCODE
153
161
else
154
- echo -e " \033[32m run $3 CI SUCCESS \033"
162
+ echo -e " \033[32m The $3 CI has completed \033"
155
163
fi
156
164
}
157
165
# ###################################
You can’t perform that action at this time.
0 commit comments