We are currently using OctopusDeploy v2019.8.9. In the documentation for using the built-in “Deploy an Azure Web App” it indicates that the first step that should happen is “Download the package from the package repository.”
However, if we add any steps to our deployment process that require a package before the “Create x Deployment Target” steps (which are currently using inline Powershell), the Deploy an Azure Web App steps fail due to ‘No package has been staged’.
It works fine, however, if the deployment targets are created before package acquisition.
Is this by design or a bug? I’ve only really found one related article online so far and it seems like it indicates that this was resolved in v2018.8.4 and we are on v2018.8.9.
Edit: the reason this came up for us is because we are trying to migrate our inline-Powershell scripts into packages so that we can better source control them. However, moving the Create Deployment Target inline Powershell to a script file in a package will cause package acquisition to occur first, causing our issue. This is also limiting our ability to move steps that must happen at the beginning into packages.