0

I've got a pipeline where differing sections use VCS roots that point at the same git repositories.

In making up a custom pipeline that allows the VCS root default branch to be set as a parameter (defaulting to master) I'd like downstream jobs to use the same branch, however the downstream appears to use the default regardless of how I override it using %deps%

Am I misunderstanding how paramaterised vcs roots work?

Damien Ryan
  • 1,591
  • 1
  • 15
  • 34

1 Answers1

0

All you need is to setup Snapshot Dependencies between all build configurations in your pipeline - you don't need to do parametrization of "default branch".

use the same sources snapshot as the entire queued build chain being processed

in git it basically means that all build configurations in the pipeline will use the same commit, therefore the same branch as well

Tomas Panik
  • 4,337
  • 2
  • 22
  • 31
  • We use different vcs roots at different stages of the pipeline as the code is organised in small repos rather than having everything in one place. Does the %dep.% get overridden somehow when we're talking about vcs roots? – Damien Ryan Sep 01 '17 at 16:24