Unzip Task


I added an Unzip step and gave the below as “File toUnzip” field.

When it ran it complained saying,

File C:\Temp#{Octopus.Action.Package.OriginalFileName} does not exist


Hi Sara,

Thanks for getting in touch. The unzip step will be relying on a previous step having already deployed a package. That way when the unzip step runs it will have access to the path variables populated earlier.

It can be a bit tricky to get the variable usage right between steps. We have a great blog post that covers output variables much better than I could in this forum response, it’s available here: https://octopus.com/docs/deploying-applications/variables/output-variables along with this one which has tips for debugging variable problems: https://octopus.com/docs/how-to/debug-problems-with-octopus-variables

You can also use the variable picker to help you select the right variables, it toggles on via the checkbox on the right of the input field, in your case the “file to unzip”.

If you’re still having trouble, give us some more details by sending us a screen shot of your project > process page, and the deployment log so we can better troubleshoot.