<test>Determine whether the file has changed
This commit is contained in:
parent
43d322c5d0
commit
a17b11c65e
|
@ -4,6 +4,22 @@ pipeline {
|
||||||
WK = '/var/lib/jenkins/workspace/TDinternal'
|
WK = '/var/lib/jenkins/workspace/TDinternal'
|
||||||
WKC= '/var/lib/jenkins/workspace/TDinternal/community'
|
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 {
|
stages {
|
||||||
stage('Parallel test stage') {
|
stage('Parallel test stage') {
|
||||||
parallel {
|
parallel {
|
||||||
|
|
Loading…
Reference in New Issue