Archive for category TeamCity

Introducing the PSBuild meta-runner (for .NET)

I’ve been working on a thing for a while now on my spare time, which hasn’t been all that much I’m sorry to say, that I got an idea for while I was writing the TeamCity meta-runner for semantic versioning, aka “the semver meta-runner”. If you don´t know what a meta-runner is or you’d like to […]

, , , ,

Leave a comment

TeamCity: custom agent requirements

While I was working on another blog post I got to thinking about agent requirements. The reason was that I used PSGet to install a PowerShell module (Pester) onto the TeamCity agent server, i.e. I installed it globally. The downside of this approach was that I didn’t have a great story for knowing whether: the […]

, , ,

1 Comment

Pester: Using TeamCity to run your tests

I’ve previously written blog posts about Pester. The first one was a general purpose overview. The second one was about working with modules and Pester. The whole, original, purpose for me using Pester was to get a bit of quality around a PS module I’ve written called TSR. So the last part of the whole […]

, , , ,

1 Comment

TeamCity Meta-Runner: Semantic Version Build Number

Look at that nice looking SemVer used as a build number in TeamCity. It’s not impossible to get something like that working for you with some script language of choice in a build-runner. However…I just happened to make mine public, as a meta-runner, and others can benefit from it. Note: You can download the meta-runner […]

, , , , , ,

1 Comment

PowerShell: Write-Verbose and Write-Debug without annoying word wrap

Recently I ran into an issue with the PowerShell runner in TeamCity. I wanted to use the Write-Verbose and Write-Debug cmdlets to conditionally output some messages. However I discovered that the output in the build log was anything but what I originally had planned. The messages where “cut off” or word-wrapped so to say in […]

,

Leave a comment

Creating a TeamCity meta-runner

Starting with TeamCity 8.x you can now “extract” repetitive tasks into build runners, called meta-runners,  that you can re-use without the need for coding a plugin, or as JetBrains themselves like to put it: With a meta-runner, you can easily reuse existing runners, create new runners for typical tasks (e.g. publish to FTP, delete directory, […]

, , , , ,

1 Comment

Making use of TeamCity’s NuGet capabilities: Part 2

This is the second part of my explorations into TeamCity’s NuGet capabilities. In the first part of the series we talked about packaging and publishing. I briefly mentioned that TeamCity also has the ability to install packages and that it probably required a post of its own. This is that post. Enjoy! Installing Packages When […]

, , ,

6 Comments

Making use of TeamCity’s NuGet capabilities

TeamCity is a product with many strengths. One of them is the built-in support for working with all aspects of NuGet. This post is a summary of my experiences in that area. Configuration Let’s start with setting up NuGet on our TeamCity server. From the admin view, locate the integrations section. And from there, go […]

, ,

1 Comment

Using TeamCity to enable NuGet package restore for solution-level packages

Problem What’s a solution-level package? A solution-level package is one that installs a tool or additional commands for the Package Manager console, but does not add references or content to any projects in your solution. For example, the psake package installs PowerShell scripts you can use to automate your build process. A package is considered […]

,

4 Comments

Using TeamCity for ASP.NET development: Backup

This is the fourth part of a blog post series on using TeamCity continuous integration server from JetBrains for asp.net development. Here are the links to all the parts of the series: Installing/Configuring TeamCity for use with IIS MSBuild requirements for web package publishing Deploying via Web Deploy Backup (pre-deploy) [this post] 4. Backup (pre-deploy) […]

, , , , ,

6 Comments