<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Databricks Asset Bundles in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles/m-p/68193#M33583</link>
    <description>&lt;P&gt;Hi, I'm implementing Databricks Asset bundles, my scripts are in GitHub and my /resource has all the .yml of my Databricks workflow which are pointing to the main branch&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; git_source:
        git_url: https://github.com/xxxx
        git_provider: gitHubEnterprise
        git_branch: main&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I work with DABs, I create a feature branch and when I deploy and run my bundle, I want my databricks workflows to point to my feature branch, is there a way to dynamically change my git_branch to my feature branch when I deploy my bundle and run it.&lt;BR /&gt;Also, can we create a script to /resource/xx.yml mapping, the reason is that I don't want all my jobs to run when I run my bundle for a script change that is part of a single job&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;Appreciate your input here&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 10:00:39 GMT</pubDate>
    <dc:creator>Skr7</dc:creator>
    <dc:date>2024-05-06T10:00:39Z</dc:date>
    <item>
      <title>Databricks Asset Bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles/m-p/68193#M33583</link>
      <description>&lt;P&gt;Hi, I'm implementing Databricks Asset bundles, my scripts are in GitHub and my /resource has all the .yml of my Databricks workflow which are pointing to the main branch&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; git_source:
        git_url: https://github.com/xxxx
        git_provider: gitHubEnterprise
        git_branch: main&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I work with DABs, I create a feature branch and when I deploy and run my bundle, I want my databricks workflows to point to my feature branch, is there a way to dynamically change my git_branch to my feature branch when I deploy my bundle and run it.&lt;BR /&gt;Also, can we create a script to /resource/xx.yml mapping, the reason is that I don't want all my jobs to run when I run my bundle for a script change that is part of a single job&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;Appreciate your input here&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 10:00:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles/m-p/68193#M33583</guid>
      <dc:creator>Skr7</dc:creator>
      <dc:date>2024-05-06T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles/m-p/79132#M35679</link>
      <description>&lt;P&gt;Why not use&amp;nbsp;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html#substitutions" target="_self"&gt;Substitutions&lt;/A&gt;&amp;nbsp;and &lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html#custom-variables" target="_self"&gt;Custom variables&lt;/A&gt; that can be &lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html#set-a-variables-value" target="_self"&gt;specified on command line using&amp;nbsp;--var="&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;"&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;With all the features your databricks.yml would look as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;variables:&lt;BR /&gt;&amp;nbsp; git_branch:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;default: main&lt;BR /&gt;&lt;BR /&gt;git_source:&lt;BR /&gt;&amp;nbsp; git_url: https://github.com/xxxx&lt;BR /&gt;&amp;nbsp; git_provider: gitHubEnterprise&lt;BR /&gt;&amp;nbsp; git_branch:&amp;nbsp;${var.git_branch}&lt;/PRE&gt;&lt;P&gt;On command line you'd databricks deploy as follows:&lt;/P&gt;&lt;PRE&gt;databricks bundle deploy \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;--var="git_branch=features/my_great_feature"&lt;/PRE&gt;&lt;P&gt;Think of Databricks Asset Bundles as a tool to prepopulate job/workflow definition templates (based on databricks.yml, command line, env vars) so once the assets are deployed, they are going to be executed / run with the values (unless overridden by asset-specific means, like&amp;nbsp;Run now with different parameters in Jobs).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 14:52:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles/m-p/79132#M35679</guid>
      <dc:creator>JacekLaskowski</dc:creator>
      <dc:date>2024-07-17T14:52:13Z</dc:date>
    </item>
  </channel>
</rss>

