Get the sources from the branch that triggered the build in Team Services

Viewed 2712

I would like to create an integration build in VS Team Services, that is triggered when a commit is done to any branch (develop/feature xy) except master.

I am able to create a trigger for this:

enter image description here

but how do i checkout the sources of the branch that triggered the build?

In the task tab, the first step is 'Get Sources' and here i'm only able to choose one branch (the * wildcard is not possible here):

enter image description here

Otherwise for example a build is triggered by a feature branch, but the sources are taken from the develop branch. How can i do this?

1 Answers
Related