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

(query,insert)test scope

上级 147dc6c7
......@@ -4,8 +4,9 @@ import jenkins.model.CauseOfInterruption
node {
}
def skipbuild=0
def win_stop=0
def skipbuild = 0
def win_stop = 0
def scope = []
def abortPreviousBuilds() {
def currentJobName = env.JOB_NAME
......@@ -354,7 +355,22 @@ pipeline {
script{
abort_previous()
abortPreviousBuilds()
println env.CHANGE_FORK
println env.BRANCH_NAME,env.CHANGE_BRANCH
if(env.CHANGE_FORK){
scope = ['full']
}
else{
sh'''
cd ${WKC}
git fetch
git checkout ${BRANCH_NAME}
git pull
'''
gitlog = sh(script: "git log -1 --pretty=%B ", returnStdout:true)
fun_git = (gitlog =~ \(.?\))
scope = fun_git.split(",")
println scope
}
}
// sh'''
// rm -rf ${WORKSPACE}.tes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册