I have to sets of build configurations. One set for Master branch. One set for feature branches.
The most recent build for master is 1.1.377.
The most recent build for feature config is 1.0.17-stackify-int-0c95d50
Below you can see the output from team city. It’s sending the correct version to Octopus, but for some reason Octopus ignores it and is using the last build it got from the master build config.
I’ve confirmed that the TeamCity artifacts directory has the correct code compiled into nuget packages for this version: 1.0.17-stackify-int-0c95d50
What might be the cause?
See logs below
[08:50:35]Updating sources: server side checkout
[08:50:35]Step 1/2: OctopusDeploy: Create release (5s)
[08:50:36][Step 1/2] Octopus Deploy (4s)
[08:50:36][Octopus Deploy] Running command: octo.exe create-release --server http://octopus.fl.com --apikey SECRET --project FL --enableservicemessages --version 1.0.17-stackify-int-0c95d50
[08:50:36][Octopus Deploy] Creating Octopus Deploy release
[08:50:36][Octopus Deploy] Octopus Deploy Command Line Tool, version 2.6.3.60
[08:50:36][Octopus Deploy]
[08:50:37][Octopus Deploy] Handshaking with Octopus server: http://octopus.fl.com
[08:50:38][Octopus Deploy] Handshake successful. Octopus version: 3.1.4; API version: 3.0.0
[08:50:38][Octopus Deploy] Finding project: fl
[08:50:38][Octopus Deploy] Finding deployment process for project: fl
[08:50:38][Octopus Deploy] Finding release template...
[08:50:38][Octopus Deploy] Resolving NuGet package versions...
[08:50:38][Octopus Deploy] Finding latest NuGet package for step: Deploy Database Migrations
[08:50:38][Octopus Deploy] Finding latest NuGet package for step: Deploy Dugout
[08:50:39][Octopus Deploy] Finding latest NuGet package for step: Deploy WWW
[08:50:39][Octopus Deploy] Finding latest NuGet package for step: Deploy Team
[08:50:39][Octopus Deploy] Finding latest NuGet package for step: Deploy Athlete
[08:50:40][Octopus Deploy] Finding latest NuGet package for step: Deploy Worker
[08:50:40][Octopus Deploy] Using version number provided on command-line.
[08:50:40][Octopus Deploy] Release plan for release: 1.0.17-stackify-int-0c95d50
[08:50:40][Octopus Deploy] Steps:
[08:50:40][Octopus Deploy] # Name Version Source
[08:50:40][Octopus Deploy] --- ---------------------------- --------------- ------------------------------------
[08:50:40][Octopus Deploy] 1 Deploy Database Migrations 1.1.377 Latest available in NuGet repository
[08:50:40][Octopus Deploy] 2 Deploy Dugout 1.1.377 Latest available in NuGet repository
[08:50:40][Octopus Deploy] 3 Deploy WWW 1.1.377 Latest available in NuGet repository
[08:50:40][Octopus Deploy] 4 Deploy Team 1.1.377 Latest available in NuGet repository
[08:50:40][Octopus Deploy] 5 Deploy Athlete 1.1.377 Latest available in NuGet repository
[08:50:40][Octopus Deploy] 6 Deploy Worker 1.1.377 Latest available in NuGet repository
[08:50:40][Octopus Deploy]
[08:50:40][Octopus Deploy] Creating release...
[08:50:40][Octopus Deploy] Release 1.0.17-stackify-int-0c95d50 created successfully!
[08:50:40][Octopus Deploy] ##teamcity[setParameter name='octo.releaseNumber' value='1.0.17-stackify-int-0c95d50']
[08:50:40][Octopus Deploy] Octo.exe exit code: 0
[08:50:41]Step 2/2: Deploy Releases (OctopusDeploy: Deploy release) (5m:15s)
[08:55:04][Octopus Deploy] Success: Step 5: Deploy Athlete
[08:55:15][Octopus Deploy] Success: Step 3: Deploy WWW
[08:55:25][Octopus Deploy] Success: Step 4: Deploy Team
[08:55:56][Octopus Deploy] Success: Step 10: Deploy Worker
[08:55:56]Publishing internal artifacts