diff --git a/Jenkinsfile b/Jenkinsfile index c8fd2083f6a0c6b40cce902e296433ab2839864c..bac48115d30ec3dad4a20f52ed47ca22246ed7c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,8 +33,11 @@ def abort_previous(){ milestone(buildNumber) } def pre_test(){ - abort_previous() - abortPreviousBuilds() + script{ + abort_previous() + abortPreviousBuilds() + } + sh ''' sudo rmtaos || echo "taosd has not installed" ''' @@ -81,6 +84,10 @@ pipeline { changeRequest() } steps { + script{ + abort_previous() + abortPreviousBuilds() + } sh''' cp -r ${WORKSPACE} ${WORKSPACE}.tes cd ${WORKSPACE}.tes