ReadyRoll Core /Teamcity MsBuild /Octopus
Hi,
I am trying out a readyroll core project and would like to build using teamcity and deploy with octopus. It is building fine on Teamcity using MSBuild but always generate the package with version 0.0.0.0 and doesn't push to octopus. Could anyone think of a reason for this. Any help is much appreciated.
I am trying out a readyroll core project and would like to build using teamcity and deploy with octopus. It is building fine on Teamcity using MSBuild but always generate the package with version 0.0.0.0 and doesn't push to octopus. Could anyone think of a reason for this. Any help is much appreciated.
Tagged:
Best Answer
-
AlexYates Posts: 264 Rose Gold 2Add the following to your MS Build Arguments:
/p:OctoPackPackageVersion=1.1.%build.number%
Where 1.1. is entirely optional and customizable.
Of course, this assumes that your default build numbers (and anything you choose to prefix/suffix your build number with) will fit the requirements for NuGet package version numbers:
Minimum:
int.int
Max:
int.int.int.int-string
Alex Yates
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn