diff --git a/Jenkinsfile b/Jenkinsfile index 4410d81be6974fc246f50044cbc142076212677b..75ae83eeb80cf7c65175f3b1bd12f73eafe9f979 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,22 @@ pipeline { WK = '/var/lib/jenkins/workspace/TDinternal' WKC= '/var/lib/jenkins/workspace/TDinternal/community' } + stages{ + stage('pre build'){ + agent{label 'master'} + steps{ + sh ''' + ${WKC} + td=`git diff develop remotes/origin/develop` + if [ ! $td ];then + echo "no changes,skip build" + exit 0 + fi + echo "check OK!" + ''' + } + } + } stages { stage('Parallel test stage') { parallel {