Posts tagged with 'PowerShell'

Use PowerShell to Add Some Logic to Your Build Numbers in TeamCity

TeamCity has a bunch of parameters that you can use to change-up your build number if you want to. Want to add the build count? 1.0.%build.counter% How about adding the branch name as well? 1.0.%build.counter%-%teamcity.build.branch% How about truncating the branch name at 20 characters to support Semantic…

Deploy a Database Project DacPac using OctopusDeploy and PowerShell

In the past, I've had to write numerous collections of PowerShell scripts to deploy websites to various development servers. Octopus Deploy takes the pain out of that by providing a slick interface that lets you easily set up environments and get your code out to them. One thing that it doesn't handle out of the box…

Use PowerShell to Create a Folder in Octopus Deploy

Octopus Deploy has a small but good selection of tasks that you can run as part of a deployment process. If you find yourself wanting to create a folder as part of a deployment (it could be a target for uploaded files, logs etc.) then you can do that quite easily through PowerShell. In this example, we'll create an…

Published