VCS trigger: Branch filter for snapshot dependencies

Answered

Hi,

I have the following setup:

  • Build A has 2 snapshot dependencies: build B and C
  • A and B has same VCS root
  • A is configured to trigger a build on changes in snapshot dependencies


I need Build A to trigger on changes made to all branches of build B, but only on changes made to <default> for build C

Does anyone know how to accomplish that?

 

 

-Jon

4 comments

Hi Jon,

If you have VCS root X in B configured to listen all branches and VCS root Y in C to listen only <default> branch, then you can attach both these VCS roots to A build configuration and configure VCS trigger in A with "Trigger a build on changes in snapshot dependencies" enabled and default settings.

0

Hi Alina,

Thanks for the reply

I've left out some information - sorry:

I must be able to manually trigger builds in C on all branches of VCS root Y, but automatically only on <default>

- As i understand, if i configure VCS root Y to listen only on <default>, I won't be able to accomplish that?

 

0

> As i understand, if i configure VCS root Y to listen only on <default>, I won't be able to accomplish that?

No, to be able to trigger build on branch this branch should be added to the branch specification.

In this case you can create VCS root X in B and Y in C to listen all branches and attach both VCS roots to A build configuration. And configure VCS trigger in A with "Trigger a build on changes in snapshot dependencies" enabled and branch filter to filter out branches from Y VCS root. Will it work for you?

0

Please sign in to leave a comment.