From a42477aabef5cde386c182d6777b18d9688ab33d Mon Sep 17 00:00:00 2001 From: tangfangzhi Date: Wed, 22 Jun 2022 09:26:45 +0800 Subject: [PATCH] ci: add make install process in ci --- Jenkinsfile2 | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index c3b95a166f..79954fb969 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 ''' @@ -154,6 +144,7 @@ def pre_test() { go env -w GO111MODULE=on cmake .. -DBUILD_HTTP=false -DBUILD_TOOLS=true > /dev/null make -j8 >/dev/null + make install ''' return 1 } -- GitLab