Skip to content

Commit

Permalink
connectors-ci: augustin/connectors-ci/fix-build-include-for-java-conn…
Browse files Browse the repository at this point in the history
…ectors (airbytehq#25908)
  • Loading branch information
alafanechere authored and marcosmarxm committed Jun 8, 2023
1 parent a1a3ed9 commit 8439924
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/ci_connector_ops/ci_connector_ops/pipelines/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,16 +443,16 @@ def build_include(self) -> List[str]:
Returns:
List[str]: List of directories or files to be mounted to the container to run a Java connector Gradle task.
"""
to_include = [self.JAVA_BUILD_INCLUDE]
to_include = self.JAVA_BUILD_INCLUDE

if self.context.connector.connector_type == "source":
to_include.append(self.SOURCE_BUILD_INCLUDE)
to_include += self.SOURCE_BUILD_INCLUDE
elif self.context.connector.connector_type == "destination":
to_include.append(self.DESTINATION_BUILD_INCLUDE)
to_include += self.DESTINATION_BUILD_INCLUDE
else:
raise ValueError(f"{self.context.connector.connector_type} is not supported")

with_related_connectors_source_code = to_include + [connector.code_directory for connector in self.get_related_connectors()]
with_related_connectors_source_code = to_include + [str(connector.code_directory) for connector in self.get_related_connectors()]
return with_related_connectors_source_code

async def _get_patched_connector_dir(self) -> Directory:
Expand Down

0 comments on commit 8439924

Please sign in to comment.