Example #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);
    }
Example #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;
 }
Example #3
0
 public Build()
 {
     GitFlow = new GitFlow(this);
 }