Skip to content

Commit 7a6efa2

Browse files
authored
Pass config path during zenml pipeline build (#3212)
* Pass config path during zenml pipeline build * Simplify
1 parent c58f97d commit 7a6efa2

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/zenml/pipelines/pipeline_definition.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,18 @@ def build(
534534
"""
535535
with track_handler(event=AnalyticsEvent.BUILD_PIPELINE):
536536
self._prepare_if_possible()
537-
deployment, _, _ = self._compile(
538-
config_path=config_path,
539-
steps=step_configurations,
540-
settings=settings,
541-
)
537+
538+
compile_args = self._run_args.copy()
539+
compile_args.pop("unlisted", None)
540+
compile_args.pop("prevent_build_reuse", None)
541+
if config_path:
542+
compile_args["config_path"] = config_path
543+
if step_configurations:
544+
compile_args["step_configurations"] = step_configurations
545+
if settings:
546+
compile_args["settings"] = settings
547+
548+
deployment, _, _ = self._compile(**compile_args)
542549
pipeline_id = self._register().id
543550

544551
local_repo = code_repository_utils.find_active_code_repository()

0 commit comments

Comments
 (0)