From f251bb6b96914017bbd8d9cd784a9def97238d7c Mon Sep 17 00:00:00 2001 From: "george.linsdell" Date: Fri, 8 Jan 2021 17:21:48 +0000 Subject: [PATCH 1/2] more patchy patchy by extending the timeout for fetch as the repo is apparently huge. --- versioncontrol/git.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/versioncontrol/git.groovy b/versioncontrol/git.groovy index f5b2ebd..de9e244 100644 --- a/versioncontrol/git.groovy +++ b/versioncontrol/git.groovy @@ -195,8 +195,8 @@ def docheckout(String gitURL, String revision, int cloneDepth, String reporootpa ], doGenerateSubmoduleConfigurations: false, extensions: [ - [$class: 'GitLFSPull'], - [$class: 'CleanBeforeCheckout'], + [$class: 'GitLFSPull',timeout: 25], + [$class: 'CleanBeforeCheckout',timeout: 20], [$class: 'CloneOption', depth: cloneDepth, noTags: false, reference: reporootpath, shallow: shallowClone, timeout: 120], [$class: 'CheckoutOption', timeout: 120], [$class: 'RelativeTargetDirectory', relativeTargetDir: targetDir], From 26d4aa2ff8f9f84463706d883d45662ee2358bfc Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Wed, 8 Sep 2021 13:24:09 +0100 Subject: [PATCH 2/2] Correct powershell redirection to null --- versioncontrol/git.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/versioncontrol/git.groovy b/versioncontrol/git.groovy index 9a72e9d..50f4025 100644 --- a/versioncontrol/git.groovy +++ b/versioncontrol/git.groovy @@ -265,9 +265,9 @@ def gitsparserestore(String targetDir) { """ } else { powershell """ - git rm -rf . 2> nul - git clean -fxd 2> nul - git reset --hard 2> nul + git rm -rf . > \$null + git clean -fxd > \$null + git reset --hard > \$null """ } }