From 2be26326001036347d0a8c8688bc6e13c3703f03 Mon Sep 17 00:00:00 2001 From: tomchon Date: Mon, 29 Aug 2022 19:02:59 +0800 Subject: [PATCH] test: modify checkpackages scritps --- packaging/MPtestJenkinsfile | 8 ++++---- packaging/testpackage.sh | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packaging/MPtestJenkinsfile b/packaging/MPtestJenkinsfile index 5e259d56be..a003bf354c 100644 --- a/packaging/MPtestJenkinsfile +++ b/packaging/MPtestJenkinsfile @@ -107,7 +107,7 @@ pipeline { stage('ubuntu16') { agent{label " ubuntu16 "} steps { - timeout(time: 10, unit: 'MINUTES'){ + timeout(time: 30, unit: 'MINUTES'){ sync_source("${BRANCH_NAME}") sh ''' cd ${TDENGINE_ROOT_DIR}/packaging @@ -130,7 +130,7 @@ pipeline { stage('ubuntu18') { agent{label " ubuntu18 "} steps { - timeout(time: 10, unit: 'MINUTES'){ + timeout(time: 30, unit: 'MINUTES'){ sync_source("${BRANCH_NAME}") sh ''' cd ${TDENGINE_ROOT_DIR}/packaging @@ -153,7 +153,7 @@ pipeline { stage('centos7') { agent{label " centos7_9 "} steps { - timeout(time: 10, unit: 'MINUTES'){ + timeout(time: 30, unit: 'MINUTES'){ sync_source("${BRANCH_NAME}") sh ''' cd ${TDENGINE_ROOT_DIR}/packaging @@ -176,7 +176,7 @@ pipeline { stage('centos8') { agent{label " centos8_3 "} steps { - timeout(time: 10, unit: 'MINUTES'){ + timeout(time: 30, unit: 'MINUTES'){ sync_source("${BRANCH_NAME}") sh ''' cd ${TDENGINE_ROOT_DIR}/packaging diff --git a/packaging/testpackage.sh b/packaging/testpackage.sh index 669b0c9e1e..054c24eb5d 100755 --- a/packaging/testpackage.sh +++ b/packaging/testpackage.sh @@ -83,8 +83,10 @@ wget https://www.taosdata.com/assets-download/3.0/${originPackageName} if [[ ${packgeName} =~ "deb" ]];then + cd ${installPath} echo "dpkg ${packgeName}" && dpkg -i ${packgeName} elif [[ ${packgeName} =~ "rpm" ]];then + cd ${installPath} echo "rpm ${packgeName}" && rpm -ivh ${packgeName} elif [[ ${packgeName} =~ "tar" ]];then echo "tar ${packgeName}" && tar -xvf ${packgeName} -- GitLab