diff --git a/versioncontrol/git.groovy b/versioncontrol/git.groovy index 5bcb0ba..50f4025 100644 --- a/versioncontrol/git.groovy +++ b/versioncontrol/git.groovy @@ -196,8 +196,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], @@ -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 """ } }