diff --git a/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/GitSource.groovy b/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/GitSource.groovy index 2e2f94f2..1f9e9dce 100644 --- a/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/GitSource.groovy +++ b/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/GitSource.groovy @@ -26,7 +26,7 @@ class GitSource implements SourceRetriever { .inheritIO() .directory(target) def proc = processBuilder.start() - proc.waitFor(CLONE_TIMEOUT, TimeUnit.SECONDS) + proc.waitFor(CLONE_TIMEOUT_MIN, TimeUnit.MINUTES) proc.exitValue() return [fetch.toURI().toURL()] } diff --git a/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/SourceRetriever.groovy b/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/SourceRetriever.groovy index a64508fe..59464844 100644 --- a/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/SourceRetriever.groovy +++ b/src/main/groovy/com/lesfurets/jenkins/unit/global/lib/SourceRetriever.groovy @@ -5,7 +5,7 @@ import groovy.transform.CompileStatic @CompileStatic interface SourceRetriever { - public static final int CLONE_TIMEOUT = 10 + public static final int CLONE_TIMEOUT_MIN = 10 List retrieve(String repository, String branch, String targetPath) throws IllegalStateException