Downloads:

39,082

Downloads of v 2017.1.4:

5,832

Last Update:

9/6/2017

Package Maintainer(s):

Software Author(s):

  • JetBrains

Tags:

Testing Build Coding Compilation Continuous Integration CI jetbrains admin

TeamCity Continuous Integration Server

This is not the latest version of TeamCity Continuous Integration Server available.

2017.1.4 | Updated: 9/6/2017

Downloads:

39,082

Downloads of v 2017.1.4:

5,832

Maintainer(s):

Software Author(s):

  • JetBrains

TeamCity Continuous Integration Server 2017.1.4

This is not the latest version of TeamCity Continuous Integration Server available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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

>

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

>

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

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade teamcity -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade teamcity -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure teamcity installed
  win_chocolatey:
    name: teamcity
    state: present
    version: 2017.1.4
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'teamcity' do
  action    :install
  version  '2017.1.4'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: teamcity,
    Version: 2017.1.4,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller teamcity
{
   Name     = 'teamcity'
   Ensure   = 'Present'
   Version  = '2017.1.4'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'teamcity':
  provider => 'chocolatey',
  ensure   => '2017.1.4',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install teamcity version="2017.1.4" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

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

This package was approved as a trusted package on 9/6/2017.

Description

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

Optional installation commands:

choco install teamcity -params "username=*user* password=*password*" to specify a user account for the TeamCity service. This defaults to the SYSTEM account.

choco install teamcity -params "username=*user* password=*password* domain=*domain*" to specify a domain user account for the TeamCity service. This defaults to the SYSTEM account.

choco install teamcity -params "unzipLocation=*path*" to specify the root directory for the TeamCity service. This defaults to C:\.
Note: 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.


tools\chocolateyHelpers.ps1
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\chocolateyInstall.ps1
$options = @{
  version = '2017.1.4';
  unzipLocation = 'C:\';
  runAsSystem = $true;
  serviceName = 'TeamCity';
  userName = '';
  domain = '';
  password = '';
}
$packageParameters = @{
  packageName = 'teamcity';
  url = "https://download.jetbrains.com/teamcity/TeamCity-$($options['version']).tar.gz";
  url64bit = '';
  checksum = 'd5f5acc40d31fbb445890373bd92362792d797ba96df39cb291aa308e1a88b4a';
  checksumType = 'Sha256';
  checksum64 = '';
  checksumType64 = '';
}

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
tools\chocolateyUninstall.ps1
$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

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.

Version Downloads Last Updated Status
TeamCity Continuous Integration Server 2019.1.4 45 Saturday, October 12, 2019 Approved
TeamCity Continuous Integration Server 2019.1.3 110 Friday, August 30, 2019 Approved
TeamCity Continuous Integration Server 2019.1.2 53 Thursday, August 1, 2019 Approved
TeamCity Continuous Integration Server 2019.1.1 118 Wednesday, June 26, 2019 Approved
TeamCity Continuous Integration Server 2019.1 148 Sunday, May 26, 2019 Approved
TeamCity Continuous Integration Server 2018.2.3 241 Sunday, March 10, 2019 Approved
TeamCity Continuous Integration Server 2018.2.2 105 Saturday, February 2, 2019 Approved
TeamCity Continuous Integration Server 2018.2.1 95 Wednesday, January 2, 2019 Approved

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