From b925d862b3d8c6a7a6f3f6d71c279685951eb5ad Mon Sep 17 00:00:00 2001 From: Peter Somogyi Date: Thu, 3 Jan 2019 14:56:32 +0100 Subject: [PATCH] HBASE-21668 SCM fetch times out for nightlies --- dev-support/Jenkinsfile | 49 +++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 7 deletions(-) diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index b333afbd7f..d36318b678 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -58,9 +58,16 @@ pipeline { stages { stage ('scm-checkout') { steps { - dir('component') { - checkout scm - } + dir('component') { + checkout([ + $class: 'GitSCM', + branches: scm.branches, + extensions: scm.extensions + [ + [$class: 'CleanBeforeCheckout'], + [$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true, depth: 30]], + userRemoteConfigs: scm.userRemoteConfigs + ]) + } } } stage ('thirdparty installs') { @@ -203,7 +210,14 @@ pipeline { unstash 'yetus' // since we have a new node definition we need to re-do the scm checkout dir('component') { - checkout scm + checkout([ + $class: 'GitSCM', + branches: scm.branches, + extensions: scm.extensions + [ + [$class: 'CleanBeforeCheckout'], + [$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true, depth: 30]], + userRemoteConfigs: scm.userRemoteConfigs + ]) } sh '''#!/usr/bin/env bash set -e @@ -270,7 +284,14 @@ pipeline { ''' unstash 'yetus' dir('component') { - checkout scm + checkout([ + $class: 'GitSCM', + branches: scm.branches, + extensions: scm.extensions + [ + [$class: 'CleanBeforeCheckout'], + [$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true, depth: 30]], + userRemoteConfigs: scm.userRemoteConfigs + ]) } sh '''#!/usr/bin/env bash set -e @@ -350,7 +371,14 @@ pipeline { ''' unstash 'yetus' dir('component') { - checkout scm + checkout([ + $class: 'GitSCM', + branches: scm.branches, + extensions: scm.extensions + [ + [$class: 'CleanBeforeCheckout'], + [$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true, depth: 30]], + userRemoteConfigs: scm.userRemoteConfigs + ]) } sh '''#!/usr/bin/env bash set -e @@ -437,7 +465,14 @@ pipeline { ''' unstash 'yetus' dir('component') { - checkout scm + checkout([ + $class: 'GitSCM', + branches: scm.branches, + extensions: scm.extensions + [ + [$class: 'CleanBeforeCheckout'], + [$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true, depth: 30]], + userRemoteConfigs: scm.userRemoteConfigs + ]) } sh '''#!/usr/bin/env bash set -e -- 2.20.1