<test>Determine whether the file has changed

This commit is contained in:
liuyq-617 2020-10-20 15:23:52 +08:00
parent 43d322c5d0
commit a17b11c65e
1 changed files with 16 additions and 0 deletions

16
Jenkinsfile vendored
View File

@ -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 {