I’m trying to use a PS script to copy a octopus package from octopus dir to another folder location.
The below script only seems to be copying a empty folder and not the artefact inside zip file.
Can I please be advised what I’m doing wrong?
$adbsPath = $OctopusParameters[“Octopus.Action.Package[RetentionCampaignDecisionService].ExtractedPath”]
$dstPath = “C:\RetentionCampaign\deployment\repository\archive”
Copy-Item -Path $adbsPath -Destination $dstpath
this is the package reference I’m to extract artefact inside then to copy destination
it only seems to be copying an empty folder and not the artefact inside the zip folder