Skip to content

Move CI server specifics in to add-on NuGet packages. #10

Description

@lholman

For example, within Set-BuildNumberWithGitCommitDetail we have the parameter sendTeamCityServiceMessage which, as it suggests updates the build number within the executing TeamCity build configuration to reflect that created by OneBuild, as so:

if ($sendTeamCityServiceMessage -eq $true)
                {
                    #Forces TeamCity to use a specific buildNumber (substituting in its build counter as we only use {0} in the TeamCity build number format
                    #See http://confluence.jetbrains.com/display/TCD7/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildNumber 
                    #and http://youtrack.jetbrains.com/issue/TW-18455 for more details.
                    Write-Host "##teamcity[buildNumber '$major.$minor.$buildCounter.$revision']" 
                }

Although this is benign for other CI servers it's noise, also the solution isn't so simple with other CI servers, such as AppVeyor, where you need to call their PowerShell module during the build, see http://www.appveyor.com/docs/build-worker-api#update-build-details

This issue is to look at moving CI server specific commands out in to support NuGet packages, such at OneBuild.TeamCity and OneBuild.AppVeyor, alowing us to keep the OneBuild NuGet package clean and CI server agnostic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions