How to setup nuget package build/publish for only development-branch builds
Hello,
I've a git repository with a master, development, and a couple of feature branches. During the build, a couple of nuget packages are created. I have setup my teamcity build server such that on every commit on any branch a build is triggered for that branch. My issue is that I want nuget packages be published to the teamcity nuget server, but only for the development branch. That is, I only want the nuget packages from the development branch to be published to the nuget server, not the nuget packages created during a feature branch build.
I've been experimenting with snapshot and artifact dependencies but both have different limitations making it hard to accomplish what I want. What would be the best way to set this up in teamcity?
Thanks in advance for your help.
Merijn
Please sign in to leave a comment.
Create 2 configurations inside the same project.
- One does the build
- One does the publish
The publish configuration only operates on the development branch. Done!