Hi,
In my projects I have five different configurations being in order of deployement, DEV, QA, PERF, PRV and PRD.
From what I first understood, the cspkg configuration file must be named serviceconfiguration.cloud.cscfg.
From that I add a list of variables in Octopus and at deployment time, the values in the serviceconfiguration.cloud.cscfg are set to the Octopus variables values based on the deployment configuration selected (DEV or QA or PERF or PRV or PRD)
This works fine.
However I can see in the logs the following:
Running procedure ‘Delete temporary package files’ Verbose 09:37:14
Looking for target files for variable substitution… Verbose 09:37:14
Azure service configuration file not found: C:\Octopus\Applications\Development\BentleyConnectPortalAzure\2014.07.03.1_4\ServiceConfiguration.Dev.cscfg Verbose 09:37:14
Found Azure service configuration file: C:\Octopus\Applications\Development\BentleyConnectPortalAzure\2014.07.03.1_4\ServiceConfiguration.Cloud.cscfg Verbose 09:37:15
My deduction is that Octopus is looking for ServiceConfiguration.Dev.cscfg, if it doesn’t find it, it looks for ServiceConfiguration.Cloud.cscfg.
Does that mean that in my nuget package I could have all five cscfg file and Octopus will take the right one at deploy time based on the Deploy To value?
Like the following, look attached file.
If it’s true then I won’t have to fill in the cscfg variable list which is painful and error prone.
Thanks
Daniel