未验证 提交 f88feab6 编写于 作者: Y Yiqing Liu 提交者: GitHub

Merge pull request #3935 from taosdata/hotfix/testcase

modify Jenkinsfile add branch
...@@ -8,14 +8,11 @@ pipeline { ...@@ -8,14 +8,11 @@ pipeline {
stages { stages {
stage('pre build'){ stage('pre build'){
agent{label 'master'} agent{label 'master'}
when{ changeset "develop"}
steps{ steps{
sh ''' sh '''
cd ${WKC}
td=`git diff develop remotes/origin/develop`
if [ ! $td ];then
echo "no changes,skip build"
exit 0
fi
echo "check OK!" echo "check OK!"
''' '''
} }
...@@ -23,16 +20,10 @@ pipeline { ...@@ -23,16 +20,10 @@ pipeline {
stage('Parallel test stage') { stage('Parallel test stage') {
parallel { parallel {
stage('pytest') { stage('pytest') {
when{ changeset "develop"}
agent{label 'master'} agent{label 'master'}
steps { steps {
sh ''' sh '''
cd ${WKC}
td=`git diff develop remotes/origin/develop`
if [ ! $td ];then
echo "no changes,skip build"
exit 0
fi
date date
cd ${WKC} cd ${WKC}
git checkout develop git checkout develop
...@@ -55,19 +46,14 @@ pipeline { ...@@ -55,19 +46,14 @@ pipeline {
} }
} }
stage('test_b1') { stage('test_b1') {
when{ changeset "develop"}
agent{label '184'} agent{label '184'}
steps { steps {
sh ''' sh '''
cd ${WKC}
td=`git diff develop remotes/origin/develop`
if [ ! $td ];then
echo "no changes,skip build"
exit 0
fi
date
cd ${WKC} cd ${WKC}
git checkout develop git checkout develop
git pull git pull
git submodule update git submodule update
cd ${WK} cd ${WK}
git checkout develop git checkout develop
...@@ -88,17 +74,13 @@ pipeline { ...@@ -88,17 +74,13 @@ pipeline {
stage('test_crash_gen') { stage('test_crash_gen') {
agent{label "185"} agent{label "185"}
when{ changeset "develop"}
steps { steps {
sh ''' sh '''
cd ${WKC}
td=`git diff develop remotes/origin/develop`
if [ ! $td ];then
echo "no changes,skip build"
exit 0
fi
cd ${WKC} cd ${WKC}
git checkout develop git checkout develop
git pull git pull
git submodule update git submodule update
cd ${WK} cd ${WK}
git checkout develop git checkout develop
...@@ -122,18 +104,13 @@ pipeline { ...@@ -122,18 +104,13 @@ pipeline {
stage('test_valgrind') { stage('test_valgrind') {
agent{label "186"} agent{label "186"}
when{ changeset "develop"}
steps { steps {
sh ''' sh '''
cd ${WKC}
td=`git diff develop remotes/origin/develop`
if [ ! $td ];then
echo "no changes,skip build"
exit 0
fi
date
cd ${WKC} cd ${WKC}
git checkout develop git checkout develop
git pull git pull
git submodule update git submodule update
cd ${WK} cd ${WK}
git checkout develop git checkout develop
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册