ReadyRoll Core /Teamcity MsBuild /Octopus

LinzJLinzJ Posts: 2 New member
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 Cambridge, UKPosts: 263 Rose Gold 2
    edited January 29, 2018 12:30PM Accepted 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 and Data Relay
    Creator of Speaking Mentors
    Microsoft Data Platform MVP
    Friend of Redgate
    Twitter / LinkedIn
Sign In or Register to comment.