Skip to content

Pass config path during zenml pipeline build #3212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/zenml/pipelines/pipeline_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,18 @@ def build(
"""
with track_handler(event=AnalyticsEvent.BUILD_PIPELINE):
self._prepare_if_possible()
deployment, _, _ = self._compile(
config_path=config_path,
steps=step_configurations,
settings=settings,
)

compile_args = self._run_args.copy()
compile_args.pop("unlisted", None)
compile_args.pop("prevent_build_reuse", None)
if config_path:
compile_args["config_path"] = config_path
if step_configurations:
compile_args["step_configurations"] = step_configurations
if settings:
compile_args["settings"] = settings

deployment, _, _ = self._compile(**compile_args)
pipeline_id = self._register().id

local_repo = code_repository_utils.find_active_code_repository()
Expand Down
Loading