I have a process step to apply a nuget package for my solutions. The name of this package is different for each deployment and I wanted to use a variable to get the package name. See configuration below. It doesn’t seem to use the variable when building the deployment
{
“Id”: “1aaac053-b9ac-441e-bb09-83455d015b89”,
“Name”: “Product Branding”,
“ActionType”: “Octopus.TentaclePackage”,
“Environments”: [],
“Channels”: [],
“Properties”: {
“Octopus.Action.EnabledFeatures”: “Octopus.Features.CustomScripts”,
“Octopus.Action.Package.AutomaticallyRunConfigurationTransformationFiles”: “False”,
“Octopus.Action.Package.AutomaticallyUpdateAppSettingsAndConnectionStrings”: “False”,
“Octopus.Action.Package.DownloadOnTentacle”: “False”,
“Octopus.Action.Package.NuGetFeedId”: “feeds-teamcity”,
“Octopus.Action.Package.NuGetPackageId”: “#{ImagePackageName}”,
“Octopus.Action.CustomScripts.PreDeploy.ps1”: “$path = $OctopusParameters[‘Octopus.Action[Product Branding].Output.Package.InstallationDirectoryPath’]\n$packagename = $ImagePackageName\n$filename = “branding\”+packagename+”.zip"\n\n$dest = “E:\Projects\” + $OctopusParameters[‘Octopus.Project.Name’] …if (Test-Path $fullpath)\n{\n \n $zip_file = $shell_app.namespace("$fullpath")\n $destination = $shell_app.namespace("$dest")\n $destination.Copyhere($zip_file.items(), $FOF_SILENT_FLAG + $FOF_NOCONFIRMATION_FLAG)\n}\nelse\n{\n Write-Host File $fullpath does not exist\n}\n"
},
“Links”: {}
}