I have a project. Each time I try to use it now I get the following message:
Something has changed since this snapshot was taken. Deployment Process modified (audit trail): For consistency, this deployment will use a snapshot of the variables and deployment process that was taken when the release was created, which does not include the latest changes that have been made to the project. A changed process can only be incorporated by creating a new release (this one may be renamed if desired).
I am trying to deploy a package that was created only a few minutes ago. NOTHING about the project has been changed, it just always complains.
Is there some way to purge bogus snapshots from Octopus so that the releases use updated data?
If you click your user name in the upper right when in the Octopus Portal, you should see the Octopus Server version. If you’re below 2020.6.4722 or 2021.1, upgrading to the latest version in 2020.6 or 2021.1 should hopefully fix this for you.
Please let me know how it goes if you have time or if you have any questions.
I found an easier way to do this staying with Powershell. Wasn’t a fan of the impersonation approach at all even though it may handle certain use cases. Dunno.
The single tentacle can push a module and invoke it on a remote machine using the following code. The password and username stuff is supplied as project variables. I stored the script module in the module library of Octopus and just move it over to the machine as a temp file that gets imported.
The tentacle where this runs must be set up with an account that can reach out to other target machines. In our case, we use a dedicated service account and have configured it as a local admin on certain boxes we manage.