Skip to content

Commit 441678b

Browse files
committed
Removing gradle build all projects timeout to use same one as other builds timeout
1 parent 9524a4f commit 441678b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cycode/cli/files_collector/sca/maven/restore_gradle_dependencies.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
BUILD_GRADLE_FILE_NAME = 'build.gradle'
1313
BUILD_GRADLE_KTS_FILE_NAME = 'build.gradle.kts'
1414
BUILD_GRADLE_DEP_TREE_FILE_NAME = 'gradle-dependencies-generated.txt'
15-
BUILD_GRADLE_ALL_PROJECTS_TIMEOUT = 180
1615
BUILD_GRADLE_ALL_PROJECTS_COMMAND = ['gradle', 'projects']
1716
ALL_PROJECTS_REGEX = r"[+-]{3} Project '(.*?)'"
1817

@@ -48,7 +47,7 @@ def get_working_directory(self, document: Document) -> Optional[str]:
4847
def get_all_projects(self) -> set[str]:
4948
output = shell(
5049
command=BUILD_GRADLE_ALL_PROJECTS_COMMAND,
51-
timeout=BUILD_GRADLE_ALL_PROJECTS_TIMEOUT,
50+
timeout=self.command_timeout,
5251
working_directory=get_path_from_context(self.ctx),
5352
)
5453
if not output:

0 commit comments

Comments
 (0)