<?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 Re: Asset Bundles git branch per target in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/64249#M8220</link>
    <description>&lt;P&gt;All good now?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 07:26:14 GMT</pubDate>
    <dc:creator>HazelMiller</dc:creator>
    <dc:date>2024-03-21T07:26:14Z</dc:date>
    <item>
      <title>Asset Bundles git branch per target</title>
      <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/63067#M8216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am migrating from dbx to Databricks Asset Bundles (DAB) a deployment setup where I have specific parameters per environment. This was working well with dbx, and I am trying now to define those parameters defining targets (3 targets : dev, uat, prod). Each of these targets should use a different git branch to pull the code from. However adding this :&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;git&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;branch&lt;/SPAN&gt;: dev | uat | prod&lt;/PRE&gt;&lt;P&gt;It doesn't change anything, and no matter which target I deploy, the default branch specified in the main resource setup gets pulled :&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;git_source&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;git_url&lt;/SPAN&gt;: *****&lt;BR /&gt;  &lt;SPAN&gt;git_provider&lt;/SPAN&gt;: *****&lt;BR /&gt;  &lt;SPAN&gt;git_branch&lt;/SPAN&gt;: main&lt;/PRE&gt;&lt;P&gt;Does anyone have a solution to pull from a different git branch based on which target is deployed via databricks bundle deploy -t&amp;nbsp;&lt;EM&gt;target&amp;nbsp;&lt;/EM&gt;?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2024 14:33:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/63067#M8216</guid>
      <dc:creator>thibault</dc:creator>
      <dc:date>2024-03-08T14:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles git branch per target</title>
      <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/63547#M8218</link>
      <description>&lt;P&gt;Kaniz, thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done exactly what you suggest (both with naming the section git and git_source) and I am getting this error:&lt;/P&gt;&lt;P&gt;Error: terraform apply: exit status 1&lt;/P&gt;&lt;P&gt;Error: cannot update job: Invalid use of git source in Python Task specification&lt;/P&gt;&lt;P&gt;The workflow consists of 3 tasks : 2 python tasks and 1 notebook task, all pulled from git.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:09:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/63547#M8218</guid>
      <dc:creator>thibault</dc:creator>
      <dc:date>2024-03-13T13:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles git branch per target</title>
      <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/63594#M8219</link>
      <description>&lt;P&gt;To add some details here, if I specify the git config under the overall resources: -&amp;gt; jobs, the deployment succeeds, but the git setups per branch do not override that global setup.&lt;/P&gt;&lt;P&gt;Also, if there is no git setup at the top level resources: -&amp;gt; jobs, despite it being defined at the target level, the bundle.tf.json produced with databricks bundle deploy does not contain any info about git sources, which is why the deployment fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 18:06:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/63594#M8219</guid>
      <dc:creator>thibault</dc:creator>
      <dc:date>2024-03-13T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles git branch per target</title>
      <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/64249#M8220</link>
      <description>&lt;P&gt;All good now?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 07:26:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/64249#M8220</guid>
      <dc:creator>HazelMiller</dc:creator>
      <dc:date>2024-03-21T07:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles git branch per target</title>
      <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/64259#M8221</link>
      <description>&lt;P&gt;Nope, I had to revert back to using dbx, so I will postpone migration to DAB until I find examples that work.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 09:14:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/64259#M8221</guid>
      <dc:creator>thibault</dc:creator>
      <dc:date>2024-03-21T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles git branch per target</title>
      <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/64888#M8222</link>
      <description>&lt;P&gt;Something must have changed in the meantime on Databricks side. I have only updated databricks CLI to 016 and now, using a git / branch under each target deploys this setup, where feature-dab is the branch I want the job to pull sources from, I see this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thibault_0-1711620816949.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6841i22041A0E6B6DEF87/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="thibault_0-1711620816949.png" alt="thibault_0-1711620816949.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But not sure what this means as I've never seen this in the Jobs UI, and the YAML produced still shows only the main branch as source. Do you know&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;? I can't find docs on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 10:17:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/64888#M8222</guid>
      <dc:creator>thibault</dc:creator>
      <dc:date>2024-03-28T10:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles git branch per target</title>
      <link>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/86940#M8223</link>
      <description>&lt;P&gt;Hello Kaniz_Fatma,&lt;/P&gt;&lt;P&gt;I tried your suggestions. However, the tags: git_branch, git_url, and git_provider are not recognized in the bundle.yml (&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html#git" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/settings.html#git&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;They are valid in the resource.yml context, but they do not work as Thibault mentioned.&lt;/P&gt;&lt;P&gt;My bundle.yml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;bundle:
  name: alerts

include:
  - resources/*.yml

targets:
  prod:
    git:
      origin_url: *****
      # provider: AWS CodeCommit
      branch: master
    mode: production
    workspace:
      host: ******&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;putting the following tags inside the resource.yml had no effect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;git_source:
   git_url: *********
   git_provider: AWS CodeCommit
   git_branch: master&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that was released a way to deploy a resource setting as source a Git provider (&lt;A href="https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-dab-from-a-git-repo/td-p/49501" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-dab-from-a-git-repo/td-p/49501&lt;/A&gt;). However, the video and files didn't clearly show how it was done. I would appreciate it if you could please clarify this part.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 17:01:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/asset-bundles-git-branch-per-target/m-p/86940#M8223</guid>
      <dc:creator>Fiabane</dc:creator>
      <dc:date>2024-08-30T17:01:25Z</dc:date>
    </item>
  </channel>
</rss>

