Asset bundle yml factorization

erigaud
Honored Contributor

Hello,

I have a project using asset bundle in which I have several jobs using roughly the same job definition (tags and job clusters definitions are always the same) 

Is there a way to put everything in common in a yml file and reuse that in each individual yml file of each job ? 

Thank you ! 

 

erigaud
Honored Contributor

Hello @Retired_mod 
I want to use complex variables but I would like to define all my variables in a separate file, I do not want to have them declared in the databricks.yml.

Is there a way to do that ? Thank you 

Witold
Databricks Partner

@erigaud 

What might work, I actually never tried it by myself so far, is this:

Define your complex variables in a separate yaml file (complex variables are supported since v0.222.0), import this file using include, and reference these variables accordingly.