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.

Best Answer

  • AlexYatesAlexYates Posts: 264 Rose Gold 2
    edited January 29, 2018 12:30PM Answer ✓
    Add 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
Sign In or Register to comment.