[TD-10750]remove default checkout in jenkins
This commit is contained in:
parent
c58da5e224
commit
497735f677
|
@ -1,11 +1,11 @@
|
||||||
import hudson.model.Result
|
import hudson.model.Result
|
||||||
|
import hudson.model.*;
|
||||||
import jenkins.model.CauseOfInterruption
|
import jenkins.model.CauseOfInterruption
|
||||||
properties([pipelineTriggers([githubPush()])])
|
|
||||||
node {
|
node {
|
||||||
git url: 'https://github.com/taosdata/TDengine.git'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def skipbuild=0
|
def skipbuild=0
|
||||||
|
def win_stop=0
|
||||||
|
|
||||||
def abortPreviousBuilds() {
|
def abortPreviousBuilds() {
|
||||||
def currentJobName = env.JOB_NAME
|
def currentJobName = env.JOB_NAME
|
||||||
|
@ -121,6 +121,7 @@ def pre_test(){
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
|
options { skipDefaultCheckout() }
|
||||||
environment{
|
environment{
|
||||||
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'
|
||||||
|
@ -128,6 +129,7 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('pre_build'){
|
stage('pre_build'){
|
||||||
agent{label 'master'}
|
agent{label 'master'}
|
||||||
|
options { skipDefaultCheckout() }
|
||||||
when {
|
when {
|
||||||
changeRequest()
|
changeRequest()
|
||||||
}
|
}
|
||||||
|
@ -181,6 +183,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Parallel test stage') {
|
stage('Parallel test stage') {
|
||||||
//only build pr
|
//only build pr
|
||||||
|
options { skipDefaultCheckout() }
|
||||||
when {
|
when {
|
||||||
allOf{
|
allOf{
|
||||||
changeRequest()
|
changeRequest()
|
||||||
|
|
Loading…
Reference in New Issue