From 8d6b7c9a930edb96beafbf5afb6a7a0677646f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= Date: Thu, 24 Mar 2022 11:33:27 +0100 Subject: [PATCH] fix: enable long paths for git to avoid problems with tests on Windows agents Ref: https://github.com/jenkins-infra/helpdesk/issues/2847 --- vars/infra.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vars/infra.groovy b/vars/infra.groovy index 32d5f4029..36c92b4e7 100644 --- a/vars/infra.groovy +++ b/vars/infra.groovy @@ -34,6 +34,9 @@ Object checkout(String repo = null) { } Object checkoutSCM(String repo = null) { + // Enable long paths to avoid problems with tests on Windows agents + git config core.longpaths true + if (env.BRANCH_NAME) { checkout scm } else if ((env.BRANCH_NAME == null) && (repo)) {