提交 a17b11c6 编写于 作者: L liuyq-617

<test>Determine whether the file has changed

上级 43d322c5
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册