From db537f8db50fd15ac6ad38238fa7b40217f41447 Mon Sep 17 00:00:00 2001 From: Violeta Sebe Date: Fri, 29 Nov 2019 09:06:48 -0500 Subject: [PATCH] Increase timeout and add reference repository for git clone in job DSL Add cloneOptions to git extensions: - Increase timeout form 10 to 60 minutes - Set reference repository Signed-off-by: Violeta Sebe --- buildenv/jenkins/testJobTemplate | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildenv/jenkins/testJobTemplate b/buildenv/jenkins/testJobTemplate index 8d7ef95589..9a9d53162f 100644 --- a/buildenv/jenkins/testJobTemplate +++ b/buildenv/jenkins/testJobTemplate @@ -169,6 +169,10 @@ ARCH_OS_LIST.each { ARCH_OS -> relativeTargetDirectory('openjdk-tests') cleanBeforeCheckout() pruneStaleBranch() + cloneOptions { + reference('$HOME/openjdk_cache') + timeout(60) + } } } scriptPath("buildenv/jenkins/openjdk_${ARCH_OS}")