asmagin / Cake.Sitecore

The library provides a set of pre-build CAKE tasks. Those tasks could be used to simplify a configuration of CI/CD for Helix-based Sitecore projects.
https://cakebuild.net/addins/sitecore/
MIT License
11 stars 12 forks source link

Additional parameter #15

Closed artyom-krot closed 6 years ago

artyom-krot commented 6 years ago

In current parameters only parameter BranchName exist. For example in case release/0.1 branch its value will be defined as 0.1.

Could you please add additional parameters Branch to reflect full branch name, like variable Compare variables Build.SourceBranchName and Build.SourceBranch in VSTS. Link: https://docs.microsoft.com/en-us/vsts/pipelines/build/variables?view=vsts

asmagin commented 6 years ago

This is a specifics of VSTS. Why cannot you pass full Branch name?

artyom-krot commented 6 years ago

Current parameters file has only input parameter: BranchName = GetParameterValue(Constants.BRANCH_NAME, branchName ?? "develop"); In case for using by VSTS it matches with vsts variable Build.SourceBranchName. But we also have one more variable Build.SourceBranch in vsts. Could you please define parameter for it? SiteCore Cake should be able to receive two values from git: Build.SourceBranchName Build.SourceBranch

Thats will be useful for processing in case we have folders in git for branches. Like branchname in git release/0.1 means that we have folder release with branch 0.1 in it.

asmagin commented 6 years ago

Released with Nuget 1.0.1