From 54dc6a4e1987caa030b06d12b5f99b4406768800 Mon Sep 17 00:00:00 2001 From: tangfangzhi Date: Mon, 20 Jun 2022 19:45:07 +0800 Subject: [PATCH] fix: force to clone python connector --- Jenkinsfile2 | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index c3b95a166f..e42a13c2fd 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -105,14 +105,9 @@ def sync_source() { ''' sh ''' cd ${WKC} - if [ ! -d src/connector/python/.github ]; then - rm -rf 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" - else - cd src/connector/python || echo "src/connector/python not exist" - git pull || : - fi + rm -rf src/connector/python + mkdir -p src/connector/python + git clone --depth 1 https://github.com/taosdata/taos-connector-python src/connector/python || echo "failed to clone python connector" ''' } else if (env.CHANGE_URL =~ /\/TDinternal\//) { sh ''' @@ -124,14 +119,9 @@ def sync_source() { ''' sh ''' cd ${WKC} - if [ ! -d community/src/connector/python/.github ]; then - rm -rf community/src/connector/python/* || : - rm -rf community/src/connector/python/.* || : - 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 + rm -rf src/connector/python + mkdir -p src/connector/python + git clone --depth 1 https://github.com/taosdata/taos-connector-python src/connector/python || echo "failed to clone python connector" ''' } else { sh ''' -- GitLab