francisaugusto
francisaugusto

Reputation: 1197

How to refer to multiple repositories in Jenkins?

When creating a new item in Jenkins (Freestyle), one can choose more than one Git repositories under "Source Code Management".

I want to create a post-build action to archive files from two repositories as artifacts. I clicked on "Advanced..." on each repo in order to give each repo a name, but still when I check the workspace I see only the latest repo there.

Any tips on how can I see both repos on the workspace?

Upvotes: 0

Views: 6762

Answers (1)

Houssam Rafiki
Houssam Rafiki

Reputation: 128

It's recommended to switch to Pipeline Project inside of Freestyle to support check out sources from multiple SCM providers (example). Otherwise, if you keep using Freestyle project you can use this plugin Multiple SCMs Plugin.

Upvotes: 6

Related Questions