I am trying to have 2 teamcity build plans trigger a release with the same Octopus process.
for the most part this works, but I run into an issue where the nuget package semantic versioning is causing a problem.
Attached diagram shows how both Master and RC branches will trigger a build, into different environments.
I know I can achieve this by creating 2 separate processes, but I am hoping to re-use just one process for this.
the problem I have is that I have a different semantic version setup for RC branch
Master Version: 1.1.1.%build number%
RC Version: 2600.1.1.%build number%
this is so I can tell which build the assemblies (nuget) came from.
however Octopus always takes the latest sem version, meaning, packages are ordered by version (not by publish date) so when master triggers a new release (i.e. 1.1.1.256) the release will take the 2600.1.1.7 because it’s semantic version is higher (even though that is not what triggered the release).
I need a way to tell Octopus to release the nuget package that was just built, NOT the highest sem ver package that exists.