I currently have a simple Octopus setup with a single deployment target that hosts two environments of my team’s web application. I’m in the process of adding a second deployment target that will host two additional environments. The newer deployment target doesn’t seem to be copying the application to the current installation directory, which is defined by a “DestinationFolder” variable. Looking at the logs, the newer deployment target doesn’t seem to be substituting this variable’s value properly:
Deploying package 'C:\Octopus\Files\MyApp.1.0.5765.23509.nupkg-4d75d6af-9004-4e2b-a12c-72d5010ca025' to machine 'https://myapp.mycompany.net:10933/'
Deploying package: C:\Octopus\Files\MyApp.1.0.5765.23509.nupkg-4d75d6af-9004-4e2b-a12c-72d5010ca025
Using variables from: C:\Octopus\Work\20151014212658-14\Variables.json
Transforming 'C:\Octopus\Applications\TR\MyApp\1.0.5765.23509_3\Web.config' using 'C:\Octopus\Applications\TR\MyApp\1.0.5765.23509_3\Web.TR.config'.
Copying package contents to '#{DestinationFolder}'
Copied 777 files
VERBOSE: Performing the operation "Copy Directory" on target "Item:
C:\Octopus\Work\20151014212658-14\#{DestinationFolder}\workingdir\scripts
Destination: C:\Octopus\Work\20151014212658-14\#{DestinationFolder}\scripts".
Notice that “#{DestinationFolder}” is appearing in the filepaths in the last two lines of the log.
The working deployment target properly substitutes this variable:
Deploying package 'C:\Octopus\Files\MyApp.1.0.5765.23509.nupkg-06f20264-9e9f-4008-9279-f1b64ded1e54' to machine 'https://myapp.mycompany.net:10933/'
Deploying package: C:\Octopus\Files\MyApp.1.0.5765.23509.nupkg-06f20264-9e9f-4008-9279-f1b64ded1e54
Using variables from: C:\Octopus\Work\20151014205856-431\Variables.json
Transforming 'C:\Octopus\Applications\DEV\MyApp\1.0.5765.23509_1\Web.config' using 'C:\Octopus\Applications\DEV\MyApp\1.0.5765.23509_1\Web.DEV.config'.
Copying package contents to 'D:\inetpub\wwwroot\MyAppDEV'
Copied 777 files
VERBOSE: Performing the operation "Copy Directory" on target "Item:
D:\inetpub\wwwroot\MyAppDEV\workingdir\scripts Destination:
D:\inetpub\wwwroot\MyAppDEV\scripts".
I have the DestinationFolder
variable defined for all environments (see the attached screenshot). What could be causing this variable to not be substituted for this particular deployment target?