Skip to content

Commit

Permalink
Merge pull request #377 from nre-ableton/nre/master/timeout-for-gitso…
Browse files Browse the repository at this point in the history
…urce

Make CLONE_TIMEOUT a value in minutes, not seconds
  • Loading branch information
nre-ableton committed Jun 23, 2021
2 parents f2885e8 + cacf7ba commit 075a7b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<URL> retrieve(String repository, String branch, String targetPath) throws IllegalStateException

Expand Down

0 comments on commit 075a7b2

Please sign in to comment.