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

I would like to create an integration assembly in VS Team Services, which starts when the commit is performed with any branch (develop / feature xy), except for master.

I can create a trigger for this:

enter image description here

but how can I check the sources of the branch that caused the assembly?

On the task tab, the first step is "Get Sources", and here I can only select one branch (you cannot use a wildcard here):

enter image description here

Otherwise, for example, the assembly is started by the feature branch, but the sources are taken from the development branch. How can i do this?

+7
continuous-integration vsts vsts-build vsts-build-task
source share
1 answer

The filter is great if you want to build something other than the master branch.

The industry that you select in the assembly definition is only the default branch used when manually launching Queue New Build.

OTOH assembly trigger sets which branch is loading, for example. if the assembly was called by git push on the develop branch, then this will be one check and built.

When you put a new line manually, you can also change the default value to any branch you want to build.

+9
source share

All Articles