i’m setting an octopus variable in downloading a package step in post deployment script,
Set-OctopusVariable -name “auditpath” -value “#{DB.Deployment.Package}”
where the package is extracted to custom installation directory which is a shared path. i’m getting this below error which says AuthorizationManager check failed.
We have run into these kinds of problems when running post-deploy scripts within a file share location.
One recent solution was to add the file share path to the list of trusted sites as detailed here: Deploying to fileshare - authorisation failure
A possibly easier option may be to move the script you’re running to the pre-deploy section. These scripts run from the initial extraction folder and typically don’t hit these AuthorizationManager section. It looks like you’re using an Octopus variable so the value for that should already exist at that point in the deployment.
Lastly, assuming that #{DB.Deployment.Package} is a variable defined within Octopus, I’m curious why you’re placing this within an output variable? If this is to use in a later step, would it not be possible to call the #{DB.Deployment.Package} variable directly?
thanks for the response, i will try to move it to pre-deployment script.
i cannot use this #{DB.Deployment.Package} variable directly as this is being constructed with other variables which are scoped to initial deployment step.