Can I give different git branches in the same repo for different tasks in a data bricks workflow

DBricksNewbie
New Contributor III

I have 2 tasks (T1 &T2) that run in branch B1 of Repo1.

I have created a new task (depends on T2 ) which points to a different branch B2  of same Repo1.

Is it possible to run them in the same workflow pipeline? When I tried to set this up, databricks changed the entire pipeline repo branch to B2 instead 

Walter_C
Databricks Employee
Databricks Employee

As per docs, this is currently not available:

All tasks in a job must reference the same commit in the remote repository. You must specify only one of the following for a job that uses a remote repository:

DBricksNewbie
New Contributor III

I was to able to find a workaround. Created separate jobs for those that need to be in different branch (testing tasks) and then ran all of them from a new job.

View solution in original post