Ver código fonte

ci: start.sh添加等待上游数据同步

许家凯 4 anos atrás
pai
commit
6a12c4203f
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9 0
      start.sh

+ 9 - 0
start.sh

@@ -42,6 +42,15 @@ git pull origin master # 拉取仓库
 
 cd ..
 
+java -jar $bashPath/DataWorks-flow-touch.jar -w
+
+if [ $? -eq 0 ]; then
+     echo "上游数据已同步完成!"
+else
+     echo "上游数据长时间未同步完成,程序中止!"
+     exit $?
+fi
+
 java -jar $bashPath/DataWorks-flow-touch.jar -q
 
 if [ $? -eq 0 ]; then