Notices: This section not yet converted to new layout. Download stats are rolling back out.

TeamCity Continuous Integration Server

2018.2.3

Package test results have failed.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 3/11/2019.

Powerful Continuous Integration out of the box.

Professional edition of TeamCity is free forever and provides access to all product features, support via the forum and issue tracker, 100 build configurations, and 3 build agents. It is a perfect fit for small teams and individual developers.

Package Specific

Package Parameters

The following package parameters can be set:

  • /unzipLocation: - Root directory to install TeamCity service (defaults to c:\, which results in c:\TeamCity being used. A TeamCity folder is always created, so the actual install path is C:\TeamCity for the default case or path\TeamCity with a custom option)
  • /RunAsSystem - Run as SYSTEM user (defaults to true. If false, then username/password must be set)
  • /ServiceName: - Name of TeamCity Windows service (defaults to 'TeamCity')
  • /Domain: - Windows service domain
  • /Username: - Windows service username
  • /Password: - Windows service password

To pass parameters, use --params "''" (e.g. choco install packageID [other options] --params="'/ITEM:value /ITEM2:value2 /FLAG_BOOLEAN'").
To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

Example:
choco install teamcity --params "'/username=*user* /password=*password*'"

To install TeamCity Continuous Integration Server, run the following command from the command line or from PowerShell:

C:\> choco install teamcity

To upgrade TeamCity Continuous Integration Server, run the following command from the command line or from PowerShell:

C:\> choco upgrade teamcity

Files

Hide
  • tools\chocolateyHelpers.ps1 Show
    function Get-ChocolateyPackageTempFolder {
        param(
          [string] $packageName
        )
        $chocTempDir = Join-Path $env:TEMP 'chocolatey'
        $tempDir = Join-Path $chocTempDir "$packageName"
        if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir) | Out-Null}
       
        return $tempDir
    }
    
    function Set-ChocolateyPackageOptions {
        param(
            [Parameter(Mandatory=$True,Position=1)]
            [hashtable] $options
        )
        $packageParameters = $env:chocolateyPackageParameters;
    
        if ($packageParameters) {
            $parameters = ConvertFrom-StringData -StringData $env:chocolateyPackageParameters.Replace(" ", "`n")
            $parameters.GetEnumerator() | ForEach-Object {
               $options[($_.Key)] = ($_.Value)
            }
        }
    }
  • tools\chocolateyUninstall.ps1 Show
    $optionsFile = (Join-Path $PSScriptRoot 'options.xml')
    
    if (!(Test-Path $optionsFile)) {
      throw 'Install options file missing. Could not uninstall.'
    }
    
    $options = Import-CliXml -Path $optionsFile
    
    $service = Get-Service | Where-Object Name -eq $options['serviceName']
    if ($service -ne $null) {
      Stop-Service $service
    }
    
    $binPath = Join-Path $options['unzipLocation'] 'TeamCity\bin'
    if ((Test-Path $binPath) -and ($service -ne $null)) {
      Push-Location $binPath
      Start-ChocolateyProcessAsAdmin '.\teamcity-server.bat service delete'
      Pop-Location
    }
    
    
    Remove-Item (Join-Path $options['unzipLocation'] 'TeamCity') -Recurse -Force
  • tools\chocolateyInstall.ps1 Show
    $checksum = 'af82cf71c03ba7eee9e0488f294b6cc06acd7b7a2ef22907f3a470c3a1420877'
    
    $options = @{
      version = $env:ChocolateyPackageVersion;
      unzipLocation = 'C:\';
      runAsSystem = $true;
      serviceName = 'TeamCity';
      userName = '';
      domain = '';
      password = '';
    }
    
    # https://download.jetbrains.com/teamcity/TeamCity-2018.1.4.tar.gz.sha256 
    $packageParameters = @{
      packageName = 'teamcity';
      url = "https://download.jetbrains.com/teamcity/TeamCity-$($options['version']).tar.gz";
      checksum = $checksum;
      checksumType = 'Sha256';
    }
    
    if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
    . "$PSScriptRoot\ChocolateyHelpers.ps1"
    
    Set-ChocolateyPackageOptions $options
    if ($options['userName'] -ne '' -and $options['password'] -ne '') {
      $options['runAsSystem'] = $false;
    }
    
    $service = Get-Service | Where-Object Name -eq $options['serviceName']
    if ($service -ne $null) {
      Stop-Service $service
    }
    
    $binPath = Join-Path $options['unzipLocation'] 'TeamCity\bin'
    if ((Test-Path $binPath) -and ($service -ne $null)) {
    
      Push-Location $binPath
      Start-ChocolateyProcessAsAdmin '.\teamcity-server.bat service delete'
      Pop-Location
    }
    
    $tempFolder = Get-ChocolateyPackageTempFolder $packageParameters['packageName']
    $downloadFile = Join-Path $tempFolder "TeamCity-$($options['version']).tar.gz"
    $tarFile = Join-Path $tempFolder "TeamCity-$($options['version']).tar"
    Get-ChocolateyWebFile @packageParameters -FileFullPath $downloadFile
    Get-ChocolateyUnzip -FileFullPath $downloadFile -Destination $tempFolder
    Get-ChocolateyUnzip -FileFullPath $tarFile -Destination $options['unzipLocation']
    
    Push-Location $binPath
    $args = New-Object System.Collections.ArrayList
    
    $args.Add('service') | Out-Null
    $args.Add('install') | Out-Null
    
    if ($options['runAsSystem']) {
      $args.Add('/runAsSystem') | Out-Null
    }
    else {
      $args.Add("/user=`"$($options['userName'])`"") | Out-Null
      $args.Add("/password=`"$($options['password'])`"") | Out-Null
      if ($options['domain'] -ne '')
      {
        $args.Add("/domain=`"$($options['domain'])`"") | Out-Null
      }
    }
    $joined = $($args -join ' ')
    Start-ChocolateyProcessAsAdmin ".\teamcity-server.bat $joined"
    Pop-Location
    
    $options['password'] = '';
    Export-CliXml -Path (Join-Path $PSScriptRoot 'options.xml') -InputObject $options
    
    Remove-Item $tarFile
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • JetBrains

Copyright

JetBrains s.r.o.

Tags

Release Notes

https://confluence.jetbrains.com/display/TW/TeamCity+2018.2.3+(build+61544)+Release+Notes

Version History

Version Downloads Last updated Status
TeamCity Continuous Integration Server 2018.2.2 72 Saturday, February 2, 2019 approved
TeamCity Continuous Integration Server 2018.2.1 65 Wednesday, January 2, 2019 approved
TeamCity Continuous Integration Server 2018.2 84 Saturday, December 8, 2018 approved
TeamCity Continuous Integration Server 2018.1.5 22 Wednesday, January 2, 2019 approved
TeamCity Continuous Integration Server 2018.1.4 26 Saturday, December 8, 2018 approved
TeamCity Continuous Integration Server 2018.1 4188 Wednesday, July 25, 2018 approved
TeamCity Continuous Integration Server 2017.2.4 1719 Monday, June 11, 2018 approved
TeamCity Continuous Integration Server 2017.2.3 3182 Monday, March 19, 2018 approved
TeamCity Continuous Integration Server 2017.2.2 124 Monday, March 19, 2018 approved
Show More

Discussion for the TeamCity Continuous Integration Server Package

Ground rules:

  • This discussion is only about TeamCity Continuous Integration Server and the TeamCity Continuous Integration Server package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or TeamCity Continuous Integration Server, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok