How to reference a workflow to use multiple GIT sources?

jeremy98
Honored Contributor

Hi community,

Is it possible for a workflow to reference multiple Git sources? Specifically, can different tasks within the same workflow point to different Git repositories or types of Git sources?

Ty 🙂

lingareddy_Alva
Esteemed Contributor

Hi @jeremy98 

Yes, it's definitely possible for a workflow to reference multiple Git sources, and different tasks within the same workflow can point to different Git repositories or types of Git sources. This is a common pattern in modern CI/CD and workflow orchestration systems.

LR

Hi @lingareddy_Alva,

Can you please point to some documentation on how to do it?

I am trying right now to define for several of tasks in my dbx workflow a separate git repository (all on same BitBucket Server). When I define one, it pushes it to all tasks. Even in YAML it references in single and not plural:

git_source:
        git_url: repository.git
        git_provider: bitbucketServer
        git_branch: master
Any help is appreciated.
KR,
Stefan

suk
New Contributor II

Hello @jeremy98 

Thanks for your reply.It is really helpful.

If possible please could you suggest any documents so that I can prepare the plan to fix the issue.

 

Thanks

Sukrut 

lucami
Contributor

A workflow can reference multiple Git sources. You can specify the git information for each task. However, I am not sure you can have multiple GitProvider for the same workspace....

mai_luca_0-1751027746137.png

 

stefan_erste
New Contributor III

Hi @lucami,

Can you please point to some documentation on how to do it?

I am trying right now to define for several of tasks in my dbx workflow a separate git repository (all on same BitBucket Server). When I define one, it pushes it to all tasks. Even in YAML it references in single and not plural:

git_source:
        git_url: repository.git
        git_provider: bitbucketServer
        git_branch: master
Any help is appreciated.
KR,
Stefan

jeremy98
Honored Contributor

Hi, it is not possible to do. The git source will be overwritten..

jeremy98_0-1760086253498.png