npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

pulumi-teamcity

v0.1.4

Published

A Pulumi provider for managing TeamCity CI/CD platform, dynamically bridged from the Terraform TeamCity provider with support for projects, build configurations, VCS roots, users, and team management.

Downloads

90

Readme

Pulumi TeamCity Provider

A Pulumi provider for managing TeamCity CI/CD platform, dynamically bridged from the Terraform TeamCity Provider.

Introduction

This package provides a Pulumi provider that enables you to manage your TeamCity CI/CD platform using TypeScript, JavaScript, Python, Go, or C#. The provider is automatically generated from the Terraform TeamCity provider, giving you access to all its functionality within the Pulumi ecosystem.

Features

  • Project Management: Create and organize build projects with hierarchical structures
  • Build Configurations: Define and manage build configurations, triggers, and dependencies
  • VCS Integration: Configure Version Control System roots and connections
  • User & Team Management: Manage users, groups, roles, and permissions
  • Agent Pools: Configure and manage build agent pools and licensing
  • Global Settings: Configure server-wide settings, authentication, and email notifications
  • Security: Manage SSH keys, secure tokens, and authentication methods
  • TypeScript Support: Full type safety with comprehensive TypeScript definitions

Installation

npm

npm install pulumi-teamcity

yarn

yarn add pulumi-teamcity

pnpm

pnpm add pulumi-teamcity

Configuration

Before using the provider, you need to configure authentication with your TeamCity server.

Required Configuration

  • URL: Your TeamCity server URL (e.g., https://teamcity.example.com)
  • Username: TeamCity username with appropriate permissions
  • Password: TeamCity password or access token

Setting Configuration

You can configure the provider in several ways:

1. Provider Constructor

import * as teamcity from 'pulumi-teamcity'

const provider = new teamcity.Provider('teamcity-provider', {
  url: 'https://teamcity.example.com',
  username: 'admin',
  password: 'your-password-or-token',
})

2. Environment Variables

export TEAMCITY_URL=https://teamcity.example.com
export TEAMCITY_USERNAME=admin
export TEAMCITY_PASSWORD=your-password-or-token

3. Pulumi Configuration

pulumi config set teamcity:url https://teamcity.example.com
pulumi config set teamcity:username admin
pulumi config set teamcity:password your-password-or-token --secret

Usage Examples

Basic Project Setup

import * as teamcity from 'pulumi-teamcity'

// Create a project
const project = new teamcity.Project('my-project', {
  name: 'My Application',
  projectId: 'MyApp',
  description: 'Main application project',
})

// Create a VCS root
const vcsRoot = new teamcity.Vcsroot('my-vcs', {
  name: 'Main Repository',
  vcsName: 'jetbrains.git',
  projectId: project.projectId,
  properties: {
    branch: 'refs/heads/main',
    url: 'https://github.com/example/my-app.git',
    authMethod: 'PASSWORD',
    username: 'git-user',
    password: 'git-token',
  },
})

// Create a build configuration
const buildConfig = new teamcity.BuildConfiguration('my-build', {
  name: 'Build and Test',
  projectId: project.projectId,
  vcsRoots: [
    {
      id: vcsRoot.id,
      checkoutRules: '+:. => source',
    },
  ],
  steps: [
    {
      type: 'simpleRunner',
      name: 'Build',
      properties: {
        script: 'npm install && npm run build',
      },
    },
  ],
})

User and Team Management

import * as teamcity from 'pulumi-teamcity'

// Create a user
const developer = new teamcity.User('developer', {
  username: 'john.doe',
  name: 'John Doe',
  email: '[email protected]',
  password: 'secure-password',
})

// Create a group
const developersGroup = new teamcity.Group('developers', {
  name: 'Developers',
  description: 'Development team members',
})

// Add user to group
const groupMember = new teamcity.GroupMember('dev-member', {
  groupKey: developersGroup.key,
  username: developer.username,
})

// Assign role to user for a project
const projectRole = new teamcity.Role('project-developer', {
  roleId: 'PROJECT_DEVELOPER',
  scope: 'p:MyApp',
  username: developer.username,
})

Agent Pool Configuration

import * as teamcity from 'pulumi-teamcity'

// Create an agent pool
const pool = new teamcity.Pool('build-pool', {
  name: 'Build Agents',
  maxAgents: 5,
})

Resource Types

This provider supports all TeamCity resource types including:

  • Projects: teamcity.Project
  • Build Configurations: teamcity.BuildConfiguration
  • VCS Roots: teamcity.Vcsroot
  • Users: teamcity.User
  • Groups: teamcity.Group
  • Roles: teamcity.Role
  • Agent Pools: teamcity.Pool
  • Settings: Various configuration resources

For a complete list of available resources and their properties, refer to the Terraform TeamCity Provider documentation.

Data Sources

The provider also supports data sources for querying existing TeamCity resources:

  • teamcity.getBuildConfiguration: Get build configuration details
  • teamcity.getPool: Get agent pool information
  • teamcity.getServer: Get server information
  • teamcity.getSshKey: Get SSH key details

Best Practices

  1. Use Projects for Organization: Group related build configurations under projects
  2. Secure Credentials: Always use secure storage for passwords and tokens
  3. Version Control Integration: Link build configurations to VCS roots for automatic triggering
  4. Agent Pool Management: Organize agents into pools based on capabilities and requirements
  5. Role-Based Access: Use groups and roles to manage user permissions effectively

Troubleshooting

Common Issues

  1. Authentication Errors: Verify your TeamCity credentials and server URL
  2. Permission Denied: Ensure your user account has sufficient permissions for the operations
  3. Connection Issues: Check network connectivity and firewall rules

Getting Help

License

This provider is licensed under the MIT License. The underlying Terraform provider is distributed under MPL 2.0.

Contributing

This provider is automatically generated from the Terraform TeamCity provider. For issues or feature requests, please:

  1. Check if the issue exists in the upstream Terraform provider
  2. For provider-specific issues, create an issue in this repository
  3. For general Pulumi questions, visit the Pulumi Community

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, please consult the source terraform-provider-teamcity repo.