Ejemplo n.º 1
0
    public void ShowVersion()
    {
        var versionInfo = GitFlow.FetchVersion();

        Logger.Info("Computed Version: " + versionInfo.FullSemVer);
        Logger.Info("- Current branch: " + StartingBranch);
        Logger.Info("- Develop branch: " + developBranch);
        Logger.Info("- Staging-Branch: " + ReleaseStagingBranch);
        Logger.Info("- Target-Branch: " + ReleaseTargetBranch);
    }
Ejemplo n.º 2
0
 public BuildState(string versionTagPattern,
                   string developBranch,
                   string stagingBranchPattern,
                   string releaseTargetBranch)
 {
     this.versionTagPattern    = versionTagPattern;
     this.developBranch        = developBranch;
     this.stagingBranchPattern = stagingBranchPattern;
     this.targetBranchPattern  = releaseTargetBranch;
     Version        = GitFlow.FetchVersion();
     StartingBranch = Version.BranchName;
 }