提交 febd8348 编写于 作者: T tangfangzhi

fix: force to clone python connector

上级 e956ecee
...@@ -105,14 +105,9 @@ def sync_source() { ...@@ -105,14 +105,9 @@ def sync_source() {
''' '''
sh ''' sh '''
cd ${WKC} cd ${WKC}
if [ ! -d src/connector/python/.github ]; then rm -rf src/connector/python
rm -rf src/connector/python/* || : mkdir -p src/connector/python
rm -rf src/connector/python/.* || : git clone --depth 1 https://github.com/taosdata/taos-connector-python src/connector/python || echo "failed to clone python connector"
git clone --depth 1 https://github.com/taosdata/taos-connector-python src/connector/python || echo "failed to clone python connector"
else
cd src/connector/python || echo "src/connector/python not exist"
git pull || :
fi
''' '''
} else if (env.CHANGE_URL =~ /\/TDinternal\//) { } else if (env.CHANGE_URL =~ /\/TDinternal\//) {
sh ''' sh '''
...@@ -124,14 +119,9 @@ def sync_source() { ...@@ -124,14 +119,9 @@ def sync_source() {
''' '''
sh ''' sh '''
cd ${WKC} cd ${WKC}
if [ ! -d community/src/connector/python/.github ]; then rm -rf src/connector/python
rm -rf community/src/connector/python/* || : mkdir -p src/connector/python
rm -rf community/src/connector/python/.* || : git clone --depth 1 https://github.com/taosdata/taos-connector-python src/connector/python || echo "failed to clone python connector"
git clone --depth 1 https://github.com/taosdata/taos-connector-python community/src/connector/python || echo "failed to clone python connector"
else
cd community/src/connector/python || echo "community/src/connector/python not exist"
git pull || :
fi
''' '''
} else { } else {
sh ''' sh '''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册